]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11515.rs
Auto merge of #104013 - notriddle:notriddle/rustdoc-sizeof, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-11515.rs
1 struct Test {
2     func: Box<dyn FnMut() + 'static>,
3 }
4
5
6
7 fn main() {
8     let closure: Box<dyn Fn() + 'static> = Box::new(|| ());
9     let test = Box::new(Test { func: closure }); //~ ERROR trait upcasting coercion is experimental [E0658]
10 }