blob: 636922cd87ce6d181fe2297434e6ac929c1a2b36 [file] [log] [blame] [edit]
//! regression test for <https://github.com/rust-lang/rust/issues/24389>
//@ check-pass
#![allow(dead_code)]
struct Foo;
impl Foo {
fn new() -> Self {
Foo
}
fn bar() {
Self::new();
}
}
fn main() {}