]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / suggestions / lifetimes / missing-lifetimes-in-signature-2.rs
CommitLineData
6a06907d
XL
1// Regression test for #81650
2
3struct Foo<'a> {
4 x: &'a mut &'a i32,
5}
6
7impl<'a> Foo<'a> {
8 fn bar<F, T>(&self, f: F)
9 where
10 F: FnOnce(&Foo<'a>) -> T,
11 F: 'a,
12 {}
13}
14
15trait Test {
16 fn test(&self);
17}
18
19fn func<T: Test>(foo: &Foo, t: T) {
20 foo.bar(move |_| {
21 //~^ ERROR the parameter type `T` may not live long enough
22 t.test();
23 });
24}
25
26fn main() {}