2018-08-13 18:24:08 +03:00
|
|
|
// edition:2018
|
|
|
|
|
2018-12-16 22:21:47 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2018-11-10 18:58:37 +03:00
|
|
|
enum Foo {}
|
2018-08-13 18:24:08 +03:00
|
|
|
|
2018-08-16 15:59:33 +03:00
|
|
|
struct std;
|
|
|
|
|
2018-08-13 18:24:08 +03:00
|
|
|
fn main() {
|
2018-11-10 18:58:37 +03:00
|
|
|
enum Foo { A, B }
|
2018-08-13 18:24:08 +03:00
|
|
|
use Foo::*;
|
2018-11-10 18:58:37 +03:00
|
|
|
//~^ ERROR `Foo` is ambiguous
|
2018-08-13 18:24:08 +03:00
|
|
|
|
|
|
|
let _ = (A, B);
|
2018-08-16 15:59:33 +03:00
|
|
|
|
|
|
|
fn std() {}
|
|
|
|
enum std {}
|
|
|
|
use std as foo;
|
2018-11-10 18:58:37 +03:00
|
|
|
//~^ ERROR `std` is ambiguous
|
|
|
|
//~| ERROR `std` is ambiguous
|
2018-08-13 18:24:08 +03:00
|
|
|
}
|