You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `A: std::marker::Sized` is not satisfied
--> assocconst.rs:40:25
|
40 | type Res = [isize; <None0B<A> as ResU>::u];
| ^^^^^^^^^ `A` does not have a constant size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `A`
= help: consider adding a `where A: std::marker::Sized` bound
= note: required by `None0B`
error[E0277]: the trait bound `A: Res` is not satisfied
--> assocconst.rs:40:25
|
40 | type Res = [isize; <None0B<A> as ResU>::u];
| ^^^^^^^^^ the trait `Res` is not implemented for `A`
|
= help: consider adding a `where A: Res` bound
= note: required by `None0B`
error: aborting due to 2 previous errors
looking at the error on line 40, it's complaining about the lack of Res on A,
yet that is already present at line 37
(I'm sure this code deserves some errors, but I don't think that one is right!)
The following disgusting code gives the error:
looking at the error on line 40, it's complaining about the lack of Res on A,
yet that is already present at line 37
(I'm sure this code deserves some errors, but I don't think that one is right!)
Meta
rustc 1.20.0 (f3d6973 2017-08-27)
binary: rustc
commit-hash: f3d6973
commit-date: 2017-08-27
host: x86_64-unknown-linux-gnu
release: 1.20.0
LLVM version: 4.0
The text was updated successfully, but these errors were encountered: