about summary refs log tree commit diff
path: root/tests/ui/rust-2021/ice-unsized-fn-params-2.rs
blob: 8af56ffe80de70071e71045d7b20f78fff90a81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ edition:2021
// Test that it doesn't trigger an ICE when using an unsized fn params.
// https://github.com/rust-lang/rust/issues/120241

#![feature(unsized_fn_params)]

fn guard(_s: Copy) -> bool {
    //~^ ERROR: expected a type, found a trait
    panic!()
}

fn main() {}