rust/tests/ui/impl-trait/issues/issue-54840.rs
2025-04-08 23:06:31 +03:00

7 lines
157 B
Rust

use std::ops::Add;
fn main() {
let i: i32 = 0;
let j: &impl Add = &i;
//~^ ERROR `impl Trait` is not allowed in the type of variable bindings
}