2020-10-25 17:05:37 +00:00
|
|
|
error[E0284]: type annotations needed: cannot satisfy `the constant `use_dyn::<{_: usize}>::{constant#0}` can be evaluated`
|
2020-10-26 11:46:20 +00:00
|
|
|
--> $DIR/object-safety-ok-infer-err.rs:20:5
|
2020-10-25 17:05:37 +00:00
|
|
|
|
|
|
|
|
LL | use_dyn(&());
|
|
|
|
| ^^^^^^^ cannot satisfy `the constant `use_dyn::<{_: usize}>::{constant#0}` can be evaluated`
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `use_dyn`
|
|
|
|
--> $DIR/object-safety-ok-infer-err.rs:14:55
|
|
|
|
|
|
|
|
|
LL | fn use_dyn<const N: usize>(v: &dyn Foo<N>) where [u8; N + 1]: Sized {
|
|
|
|
| ^^^^^ required by this bound in `use_dyn`
|
2020-10-25 17:05:37 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|