rust/tests/ui/rust-2018/issue-51008.rs

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

14 lines
239 B
Rust
Raw Normal View History

// Regression test for #51008 -- the anonymous lifetime in `&i32` was
// being incorrectly considered part of the "elided lifetimes" from
// the impl.
//
2024-02-07 10:42:01 +08:00
//@ check-pass
trait A {
}
impl<F> A for F where F: FnOnce(&i32) {}
fn main() {}