mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
17 lines
203 B
Rust
17 lines
203 B
Rust
#![deny(dead_code)]
|
|
|
|
mod inner {
|
|
pub trait Trait {
|
|
fn f(&self) { f(); }
|
|
}
|
|
|
|
impl Trait for isize {}
|
|
|
|
fn f() {}
|
|
}
|
|
|
|
pub fn foo() {
|
|
let a = &1isize as &inner::Trait;
|
|
a.f();
|
|
}
|