fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0284]: type annotations needed 2 --> $DIR/object-safety-ok-infer-err.rs:19:5 3 | 4LL | use_dyn(&()); 5 | ^^^^^^^ cannot infer the value of the const parameter `N` declared on the function `use_dyn` 6 | 7note: required by a bound in `use_dyn` 8 --> $DIR/object-safety-ok-infer-err.rs:14:55 9 | 10LL | fn use_dyn<const N: usize>(v: &dyn Foo<N>) where [u8; N + 1]: Sized { 11 | ^^^^^ required by this bound in `use_dyn` 12help: consider specifying the generic argument 13 | 14LL | use_dyn::<N>(&()); 15 | +++++ 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0284`.