rust/src/test/compile-fail/regions-in-enums.rs
2012-07-13 10:20:50 -07:00

13 lines
196 B
Rust

enum yes0 {
x3(&uint)
}
enum yes1 {
x4(&self/uint)
}
enum yes2 {
x5(&foo/uint) //~ ERROR named regions other than `self` are not allowed as part of a type declaration
}
fn main() {}