Skip to content

Commit 54267fc

Browse files
committed
Update compile-fail test error messages
1 parent b35e179 commit 54267fc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/compile-fail/fn-item-type.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fn main() {
3333
eq(bar::<String>, bar::<Vec<u8>>);
3434
//~^ ERROR mismatched types
3535
//~| expected type `fn(isize) -> isize {bar::<std::string::String>}`
36-
//~| found type `fn(isize) -> isize {bar::<std::vec::Vec<u8>>}`
37-
//~| expected struct `std::string::String`, found struct `std::vec::Vec`
36+
//~| found type `fn(isize) -> isize {bar::<std::collections::Vec<u8>>}`
37+
//~| expected struct `std::string::String`, found struct `std::collections::Vec`
3838

3939
// Make sure we distinguish between trait methods correctly.
4040
eq(<u8 as Foo>::foo, <u16 as Foo>::foo);

src/test/compile-fail/issue-24819.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
let mut v = Vec::new();
1515
foo(&mut v);
1616
//~^ ERROR mismatched types
17-
//~| expected struct `std::collections::HashSet`, found struct `std::vec::Vec`
17+
//~| expected struct `std::collections::HashSet`, found struct `std::collections::Vec`
1818
}
1919

2020
fn foo(h: &mut HashSet<u32>) {

src/test/compile-fail/on-unimplemented/on-trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn main() {
3333
let x = vec!(1u8, 2, 3, 4);
3434
let y: Option<Vec<u8>> = collect(x.iter()); // this should give approximately the same error for x.iter().collect()
3535
//~^ ERROR
36-
//~^^ NOTE a collection of type `std::option::Option<std::vec::Vec<u8>>` cannot be built from an iterator over elements of type `&u8`
36+
//~^^ NOTE a collection of type `std::option::Option<std::collections::Vec<u8>>` cannot be built from an iterator over elements of type `&u8`
3737
//~^^^ NOTE required by `collect`
3838
let x: String = foobar(); //~ ERROR
3939
//~^ NOTE test error `std::string::String` with `u8` `_` `u32`

0 commit comments

Comments
 (0)