mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
19 lines
341 B
Rust
19 lines
341 B
Rust
// 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);
|
|
}
|