mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00
19 lines
241 B
Rust
19 lines
241 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_snake_case)]
|
|
|
|
|
|
pub mod Foo {
|
|
pub trait Trait {
|
|
fn foo(&self);
|
|
}
|
|
}
|
|
|
|
mod Bar {
|
|
impl<'a> dyn crate::Foo::Trait + 'a {
|
|
fn bar(&self) { self.foo() }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|