Skip to content

Commit

Permalink
Add expectations for deprecation to compile-fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Mar 16, 2016
1 parent d3cc761 commit d52fc6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/compile-fail/no-implicit-prelude-nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// fail with the same error message).

#[no_implicit_prelude]
//~^ WARNING: deprecated
//~^^ WARNING: deprecated
mod foo {
mod baz {
struct Test;
Expand Down Expand Up @@ -43,6 +45,8 @@ mod foo {

fn qux() {
#[no_implicit_prelude]
//~^ WARNING: deprecated
//~^^ WARNING: deprecated
mod qux_inner {
struct Test;
impl Add for Test {} //~ ERROR: not in scope
Expand Down
2 changes: 2 additions & 0 deletions src/test/compile-fail/no-implicit-prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// except according to those terms.

#![no_implicit_prelude]
//~^ WARN deprecated
//~^^ WARN deprecated

// Test that things from the prelude aren't in scope. Use many of them
// so that renaming some things won't magically make this test fail
Expand Down

0 comments on commit d52fc6a

Please sign in to comment.