blob: efc73a21f16f302e267456723e9520e39a8a37e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Test that variants of an enum defined in another crate are resolved
// correctly when their names differ only in `SyntaxContext`.
// run-pass
// aux-build:variants.rs
extern crate variants;
use variants::*;
fn main() {
check_variants();
test_variants!();
test_variants2!();
assert_eq!(MyEnum::Variant as u8, 1);
}
|