2024-10-04 16:10:28 +02:00
|
|
|
//@ edition:2021
|
|
|
|
|
// Test that it doesn't trigger an ICE when using an unsized fn params.
|
|
|
|
|
// https://github.com/rust-lang/rust/issues/120241
|
2025-02-04 02:37:13 +00:00
|
|
|
|
2024-10-04 16:10:28 +02:00
|
|
|
#![feature(unsized_fn_params)]
|
|
|
|
|
|
|
|
|
|
fn guard(_s: Copy) -> bool {
|
|
|
|
|
//~^ ERROR: expected a type, found a trait
|
|
|
|
|
panic!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|