rust/tests/ui/lifetimes/issue-104432-unused-lifetimes-in-expansion.rs
2024-02-16 20:02:50 +00:00

13 lines
288 B
Rust

//@ 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() {}