rust/src/test/ui/regions/issue-78262.rs

10 lines
129 B
Rust
Raw Normal View History

trait TT {}
impl dyn TT {
fn func(&self) {}
}
fn main() {
let f = |x: &dyn TT| x.func(); //~ ERROR: mismatched types
}