rust/src/test/ui/issues/issue-24389.rs

12 lines
172 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
2015-09-28 12:39:29 -05:00
#![allow(dead_code)]
struct Foo;
impl Foo {
fn new() -> Self { Foo }
fn bar() { Self::new(); }
}
fn main() {}