mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
ed55629879
Issue tests numbered 1920, 3668, 5997, 23302, 32122, 40510, 57741, 71676, and 76077 were moved to relevant better-named subdirectories. ISSUES_ENTRY_LIMIT was adjusted to match new number of files and FIXME note was expanded.
15 lines
325 B
Rust
15 lines
325 B
Rust
struct P { child: Option<Box<P>> }
|
|
trait PTrait {
|
|
fn getChildOption(&self) -> Option<Box<P>>;
|
|
}
|
|
|
|
impl PTrait for P {
|
|
fn getChildOption(&self) -> Option<Box<P>> {
|
|
static childVal: Box<P> = self.child.get();
|
|
//~^ ERROR attempt to use a non-constant value in a constant
|
|
panic!();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|