Skip to content

Commit

Permalink
tests: work around fallout from normalizing signatures separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jun 5, 2017
1 parent ed711b6 commit 2a64a2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/compile-fail/associated-types-path-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ pub fn f1_int_uint() {
pub fn f1_uint_uint() {
f1(2u32, 4u32);
//~^ ERROR `u32: Foo` is not satisfied
//~| ERROR `u32: Foo` is not satisfied
}

pub fn f1_uint_int() {
f1(2u32, 4i32);
//~^ ERROR `u32: Foo` is not satisfied
//~| ERROR `u32: Foo` is not satisfied
}

pub fn f2_int() {
Expand Down
6 changes: 6 additions & 0 deletions src/test/compile-fail/on-unimplemented/multiple-impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ fn main() {
//~^ ERROR E0277
//~| NOTE trait message
//~| NOTE required by
//~| ERROR E0277
//~| NOTE trait message
Index::index(&[] as &[i32], Foo(2u32));
//~^ ERROR E0277
//~| NOTE on impl for Foo
//~| NOTE required by
//~| ERROR E0277
//~| NOTE on impl for Foo
Index::index(&[] as &[i32], Bar(2u32));
//~^ ERROR E0277
//~| NOTE on impl for Bar
//~| NOTE required by
//~| ERROR E0277
//~| NOTE on impl for Bar
}
2 changes: 2 additions & 0 deletions src/test/compile-fail/on-unimplemented/on-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ fn main() {
//~^ ERROR E0277
//~| NOTE a usize is required
//~| NOTE required by
//~| ERROR E0277
//~| NOTE a usize is required
}

0 comments on commit 2a64a2d

Please sign in to comment.