Skip to content

Commit d52fc6a

Browse files
committed
Add expectations for deprecation to compile-fail tests
1 parent d3cc761 commit d52fc6a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/compile-fail/no-implicit-prelude-nested.rs

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// fail with the same error message).
1616

1717
#[no_implicit_prelude]
18+
//~^ WARNING: deprecated
19+
//~^^ WARNING: deprecated
1820
mod foo {
1921
mod baz {
2022
struct Test;
@@ -43,6 +45,8 @@ mod foo {
4345

4446
fn qux() {
4547
#[no_implicit_prelude]
48+
//~^ WARNING: deprecated
49+
//~^^ WARNING: deprecated
4650
mod qux_inner {
4751
struct Test;
4852
impl Add for Test {} //~ ERROR: not in scope

src/test/compile-fail/no-implicit-prelude.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
#![no_implicit_prelude]
12+
//~^ WARN deprecated
13+
//~^^ WARN deprecated
1214

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

0 commit comments

Comments
 (0)