]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11515.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / issues / issue-11515.rs
1 #![feature(box_syntax)]
2
3 struct Test {
4     func: Box<dyn FnMut() + 'static>,
5 }
6
7 fn main() {
8     let closure: Box<dyn Fn() + 'static> = Box::new(|| ());
9     let test = box Test { func: closure }; //~ ERROR trait upcasting coercion is experimental [E0658]
10 }