Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-17758.rs
blob: e2ee84694e390c24d20efee9d79f49fab624be53 [
file
] [
log
] [
blame
] [
edit
]
// Test that regionck suggestions in a provided method of a trait
// don't ICE
trait
Foo
<
'
a
>
{
fn
foo
(&
'
a
self
);
fn
bar
(&
self
)
{
self
.
foo
();
//~^ ERROR lifetime may not live long enough
}
}
fn
main
()
{}