summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-54840.rs
blob: 8f1e0ece03a62ec16b87898c0b78271aa948c07c (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 return types
}