rust/tests/ui/lint/unused/issue-104397.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
231 B
Rust
Raw Normal View History

// check-pass
#![warn(unused)]
#![deny(warnings)]
struct Inv<'a>(&'a mut &'a ());
trait Trait {}
impl Trait for for<'a> fn(Inv<'a>) {}
fn with_bound()
where
(for<'a> fn(Inv<'a>)): Trait,
{}
fn main() {
with_bound();
}