summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-104432-unused-lifetimes-in-expansion.rs
blob: 5d5429ec895befc413b2e2cd7fd98bf7df1dbf6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![deny(unused_lifetimes)]
trait Trait2 {
    type As;
}

// we should not warn about an unused lifetime about code generated from this proc macro here
#[derive(Clone)]
struct ShimMethod4<T: Trait2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::As));

pub fn main() {}