rust/tests/ui/impl-trait/issues/issue-54600.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
200 B
Rust
Raw Normal View History

use std::fmt::Debug;
fn main() {
let x: Option<impl Debug> = Some(44_u32);
2023-10-04 19:51:43 +00:00
//~^ `impl Trait` only allowed in function and inherent method argument and return types
println!("{:?}", x);
}