c5b82a65e9
Previous commits fix the issue. Closes #3668
14 lines
287 B
Rust
14 lines
287 B
Rust
struct P { child: Option<@mut P> }
|
|
trait PTrait {
|
|
fn getChildOption() -> Option<@P>;
|
|
}
|
|
|
|
impl P: PTrait {
|
|
fn getChildOption() -> Option<@P> {
|
|
const childVal: @P = self.child.get(); //~ ERROR attempt to use a non-constant value in a constant
|
|
fail;
|
|
}
|
|
}
|
|
|
|
fn main() {}
|