]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26217.rs
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-26217.rs
1 fn foo<T>() where for<'a> T: 'a {}
2
3 fn bar<'a>() {
4     foo::<&'a i32>();
5     //~^ ERROR lifetime may not live long enough
6 }
7
8 fn main() {
9     bar();
10 }