blob: ccf2767012e6d3a0d35d677b300f9479c0dc962c [file] [log] [blame]
use std::fmt::Debug;
fn main() {
let x: Option<impl Debug> = Some(44_u32);
//~^ `impl Trait` only allowed in function and inherent method argument and return types
println!("{:?}", x);
}