about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-54840.rs
blob: 8537286303516add86878f661f332e8038975042 (plain)
1
2
3
4
5
6
7
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
}