rust/tests/ui/resolve/issue-19452.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
359 B
Rust
Raw Normal View History

//@ aux-build:issue-19452-aux.rs
extern crate issue_19452_aux;
enum Homura {
Madoka { age: u32 }
}
fn main() {
2016-08-22 05:57:37 +00:00
let homura = Homura::Madoka;
//~^ ERROR expected value, found struct variant `Homura::Madoka`
let homura = issue_19452_aux::Homura::Madoka;
//~^ ERROR expected value, found struct variant `issue_19452_aux::Homura::Madoka`
}