summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-54600.rs
blob: 7a64799302332c6a7ce5fba3ca6e212642c018dd (plain)
1
2
3
4
5
6
7
use std::fmt::Debug;

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