mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
15 lines
183 B
Rust
15 lines
183 B
Rust
// check-pass
|
|
|
|
pub trait Foo {
|
|
fn foo(self) -> u32;
|
|
}
|
|
|
|
impl<T> Foo for T {
|
|
fn foo(self) -> u32 {
|
|
fn bar<T>() { loop {} }
|
|
bar::<T> as u32
|
|
}
|
|
}
|
|
|
|
fn main() {}
|