summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs')
-rw-r--r--tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs
index 828ee4fe4..c902d133e 100644
--- a/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs
+++ b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs
@@ -1,3 +1,4 @@
+// check-pass
// edition:2018
#![allow(non_camel_case_types)]
@@ -8,14 +9,11 @@ struct std;
fn main() {
enum Foo { A, B }
- use Foo::*;
- //~^ ERROR `Foo` is ambiguous
+ use Foo::*; // OK
let _ = (A, B);
fn std() {}
enum std {}
- use std as foo;
- //~^ ERROR `std` is ambiguous
- //~| ERROR `std` is ambiguous
+ use std as foo; // OK
}