mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
17 lines
222 B
Rust
17 lines
222 B
Rust
//@ check-pass
|
|
|
|
#![allow(function_casts_as_integer)]
|
|
|
|
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() {}
|