rust/tests/ui/traits/use-before-def.rs
2024-02-16 20:02:50 +00:00

11 lines
206 B
Rust

//@ check-pass
#![allow(non_camel_case_types)]
// Issue #1761
//@ pretty-expanded FIXME #23616
impl foo for isize { fn foo(&self) -> isize { 10 } }
trait foo { fn foo(&self) -> isize; }
pub fn main() {}