rust/src/test/compile-fail/regions-in-rsrcs.rs

16 lines
238 B
Rust
Raw Normal View History

2012-08-15 20:46:55 -05:00
struct yes0 {
let x: &uint;
drop {}
}
2012-08-15 20:46:55 -05:00
struct yes1 {
let x: &self/uint;
drop {}
}
2012-08-15 20:46:55 -05:00
struct yes2 {
let x: &foo/uint; //~ ERROR named regions other than `self` are not allowed as part of a type declaration
drop {}
}
fn main() {}