2012-07-11 10:28:30 -07:00
|
|
|
enum yes0 {
|
2012-04-18 21:26:25 -07:00
|
|
|
x3(&uint)
|
|
|
|
}
|
|
|
|
|
2012-07-11 10:28:30 -07:00
|
|
|
enum yes1 {
|
2012-07-12 09:36:56 -07:00
|
|
|
x4(&self/uint)
|
2012-04-18 21:26:25 -07:00
|
|
|
}
|
|
|
|
|
2012-07-11 10:28:30 -07:00
|
|
|
enum yes2 {
|
2012-07-12 09:36:56 -07:00
|
|
|
x5(&foo/uint) //~ ERROR named regions other than `self` are not allowed as part of a type declaration
|
2012-04-18 21:26:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|