rust/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
228 B
Rust
Raw Normal View History

// check-pass
// edition:2018
#![allow(non_camel_case_types)]
enum Foo {}
struct std;
fn main() {
enum Foo { A, B }
use Foo::*; // OK
let _ = (A, B);
fn std() {}
enum std {}
use std as foo; // OK
}