]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/unsized-parameters.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / unsized-locals / unsized-parameters.rs
1 // run-pass
2
3 #![allow(incomplete_features)]
4 #![feature(unsized_fn_params)]
5
6 pub fn f0(_f: dyn FnOnce()) {}
7 pub fn f1(_s: str) {}
8 pub fn f2(_x: i32, _y: [i32]) {}
9
10 fn main() {
11     let foo = "foo".to_string().into_boxed_str();
12     f1(*foo);
13 }