rust/tests/ui/impl-trait/issues/issue-54600.rs
2023-01-11 09:32:08 +00:00

8 lines
187 B
Rust

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