summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-54840.rs
blob: 910d23f1d93863402a24bed47186f446a11a3238 (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` only allowed in function and inherent method argument and return types
}