]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-unsized_locals.stderr
0775431a9d350269da9fa573b6d772d1d935afb0
[rust.git] / src / test / ui / feature-gates / feature-gate-unsized_locals.stderr
1 error[E0277]: the size for values of type `(dyn std::ops::FnOnce() + 'static)` cannot be known at compilation time
2   --> $DIR/feature-gate-unsized_locals.rs:1:6
3    |
4 LL | fn f(f: dyn FnOnce()) {}
5    |      ^ doesn't have a size known at compile-time
6    |
7    = help: the trait `std::marker::Sized` is not implemented for `(dyn std::ops::FnOnce() + 'static)`
8    = note: all local variables must have a statically known size
9    = help: unsized locals are gated as an unstable feature
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0277`.