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