rust/tests/ui/issues/issue-2151.rs

5 lines
85 B
Rust

fn main() {
let x = panic!(); //~ ERROR type annotations needed
x.clone();
}