2021-10-28 15:48:39 -05:00
|
|
|
// Test that variants of an enum defined in another crate are resolved
|
|
|
|
// correctly when their names differ only in `SyntaxContext`.
|
|
|
|
|
2021-10-23 06:06:58 -05:00
|
|
|
// 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);
|
|
|
|
}
|