rust/tests/ui/issues/issue-6458-1.rs
2023-01-11 09:32:08 +00:00

9 lines
130 B
Rust

// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes
fn foo<T>(t: T) {}
fn main() {
foo(panic!())
}