Sign in
rust
/
rust
/
ef4cff2ea33e070b7fa7253fdb4a88e3f4086a15
/
.
/
tests
/
ui
/
consts
/
const-eval
/
const_prop_errors.rs
blob: 68118da20e5d1841246e34b27d2d1040443bec0f [
file
] [
log
] [
blame
]
//@ 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
()
{}