mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
20 lines
230 B
Rust
20 lines
230 B
Rust
//@ 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
|
|
}
|