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 }
|
2018-08-13 10:24:08 -05:00
|
|
|
use Foo::*;
|
2018-11-10 09:58:37 -06:00
|
|
|
//~^ ERROR `Foo` is ambiguous
|
2018-08-13 10:24:08 -05:00
|
|
|
|
|
|
|
let _ = (A, B);
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
fn std() {}
|
|
|
|
enum std {}
|
|
|
|
use std as foo;
|
2018-11-10 09:58:37 -06:00
|
|
|
//~^ ERROR `std` is ambiguous
|
|
|
|
//~| ERROR `std` is ambiguous
|
2018-08-13 10:24:08 -05:00
|
|
|
}
|