summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-54840.rs
blob: 65257d2f7f1db1b6bd04dceb848fe1a1bd077686 (plain)
1
2
3
4
5
6
7
use std::ops::Add;

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