diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-01-10 05:15:02 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-01-10 05:54:24 +0000 |
| commit | d86e487b0b1025c5e8b9b69b318af9ac76dcf693 (patch) | |
| tree | f4bae858ca44342b334a91859b8bd476cf64ed12 /src/test/compile-fail | |
| parent | 235a7a743cc01ab0d5484e02eebe02152b368e99 (diff) | |
| download | rust-d86e487b0b1025c5e8b9b69b318af9ac76dcf693.tar.gz rust-d86e487b0b1025c5e8b9b69b318af9ac76dcf693.zip | |
Start warning cycle.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-38293.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/compile-fail/issue-38293.rs b/src/test/compile-fail/issue-38293.rs index f97fad7bd74..bf24621a869 100644 --- a/src/test/compile-fail/issue-38293.rs +++ b/src/test/compile-fail/issue-38293.rs @@ -10,22 +10,24 @@ // Test that `fn foo::bar::{self}` only imports `bar` in the type namespace. +#![allow(unused)] +#![deny(legacy_imports)] + mod foo { pub fn f() { } } use foo::f::{self}; -//~^ ERROR unresolved import -//~| NOTE no `f` in `foo` +//~^ ERROR `self` no longer imports values +//~| WARN hard error mod bar { pub fn baz() {} pub mod baz {} } use bar::baz::{self}; +//~^ ERROR `self` no longer imports values +//~| WARN hard error fn main() { baz(); - //~^ ERROR unresolved name `baz` - //~| NOTE unresolved name - //~| HELP module `baz` cannot be used as an expression } |
