Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-5321-immediates-with-bare-self.rs
blob: cb35a641c5e39cd05b1b8642fea5f1d8f83fe5fa [
file
] [
log
] [
blame
] [
edit
]
//@ 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
();
}