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