rust/src/test/ui/issues/issue-24389.rs
2018-12-25 21:08:33 -07:00

12 lines
137 B
Rust

// compile-pass
#![allow(dead_code)]
struct Foo;
impl Foo {
fn new() -> Self { Foo }
fn bar() { Self::new(); }
}
fn main() {}