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); }