summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-54840.rs
blob: 030d5715d5739e7f01d0f4fcf79174158bb46a62 (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` not allowed outside of function and method return types
}