rust/tests/ui/impl-trait/issues/issue-54600.rs
2024-01-07 18:00:03 +00:00

8 lines
177 B
Rust

use std::fmt::Debug;
fn main() {
let x: Option<impl Debug> = Some(44_u32);
//~^ `impl Trait` is not allowed in the type of variable bindings
println!("{:?}", x);
}