Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
trait-implementation-for-usize-5321.rs
blob: ab997b6627a5f9274b35c0cd4339606bd2ce3b40 [
file
] [
log
] [
blame
]
//@ run-pass
trait
Fooable
{
fn
yes
(
self
);
}
impl
Fooable
for
usize
{
fn
yes
(
self
)
{
for
_ in
0.
.
self
{
println
!(
"yes"
);
}
}
}
pub
fn
main
()
{
2.yes
();
}
// https://github.com/rust-lang/rust/issues/5321