rust/tests/ui/issues/issue-24389.rs

12 lines
135 B
Rust
Raw Normal View History

// check-pass
2015-09-28 17:39:29 +00:00
#![allow(dead_code)]
struct Foo;
impl Foo {
fn new() -> Self { Foo }
fn bar() { Self::new(); }
}
fn main() {}