]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-24389.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-24389.rs
1 // check-pass
2 #![allow(dead_code)]
3
4 struct Foo;
5
6 impl Foo {
7     fn new() -> Self { Foo }
8     fn bar() { Self::new(); }
9 }
10
11 fn main() {}