2023-05-29 15:36:06 -05:00
|
|
|
// check-pass
|
2018-08-13 10:24:08 -05:00
|
|
|
// edition:2018
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
enum Foo {}
|
2018-08-13 10:24:08 -05:00
|
|
|
|
2018-08-16 07:59:33 -05:00
|
|
|
struct std;
|
|
|
|
|
2018-08-13 10:24:08 -05:00
|
|
|
fn main() {
|
2018-11-10 09:58:37 -06:00
|
|
|
enum Foo { A, B }
|
2023-05-29 15:36:06 -05:00
|
|
|
use Foo::*; // OK
|
2018-08-13 10:24:08 -05:00
|
|
|
|
|
|
|
let _ = (A, B);
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
fn std() {}
|
|
|
|
enum std {}
|
2023-05-29 15:36:06 -05:00
|
|
|
use std as foo; // OK
|
2018-08-13 10:24:08 -05:00
|
|
|
}
|