]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/use-before-def.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / traits / use-before-def.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3
4 // Issue #1761
5
6 // pretty-expanded FIXME #23616
7
8 impl foo for isize { fn foo(&self) -> isize { 10 } }
9 trait foo { fn foo(&self) -> isize; }
10 pub fn main() {}