summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issues/issue-54600.rs
blob: 3024fedf7b5fbad353f783ed2c4c06b9e074fcd1 (plain)
1
2
3
4
5
6
7
use std::fmt::Debug;

fn main() {
    let x: Option<impl Debug> = Some(44_u32);
    //~^ `impl Trait` only allowed in function and inherent method return types
    println!("{:?}", x);
}