diff options
Diffstat (limited to 'src/test/compile-fail/no-implicit-prelude-nested.rs')
| -rw-r--r-- | src/test/compile-fail/no-implicit-prelude-nested.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/compile-fail/no-implicit-prelude-nested.rs b/src/test/compile-fail/no-implicit-prelude-nested.rs index e215407ec87..779a1ec7a5b 100644 --- a/src/test/compile-fail/no-implicit-prelude-nested.rs +++ b/src/test/compile-fail/no-implicit-prelude-nested.rs @@ -25,8 +25,7 @@ mod foo { impl Writer for Test {} //~ ERROR: attempt to implement a nonexistent trait fn foo() { - print("foo"); //~ ERROR: unresolved name - println("bar"); //~ ERROR: unresolved name + drop(2) //~ ERROR: unresolved name } } @@ -38,8 +37,7 @@ mod foo { impl Writer for Test {} //~ ERROR: attempt to implement a nonexistent trait fn foo() { - print("foo"); //~ ERROR: unresolved name - println("bar"); //~ ERROR: unresolved name + drop(2) //~ ERROR: unresolved name } } @@ -54,8 +52,7 @@ fn qux() { impl Writer for Test {} //~ ERROR: attempt to implement a nonexistent trait fn foo() { - print("foo"); //~ ERROR: unresolved name - println("bar"); //~ ERROR: unresolved name + drop(2) //~ ERROR: unresolved name } } } @@ -63,6 +60,5 @@ fn qux() { fn main() { // these should work fine - print("foo"); - println("bar"); + drop(2) } |
