2018-07-15 14:11:54 -07:00
|
|
|
error[E0277]: the trait bound `isize: HasState` is not satisfied
|
2023-01-08 02:40:59 +00:00
|
|
|
--> $DIR/issue-18611.rs:1:18
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2023-01-08 02:40:59 +00:00
|
|
|
LL | fn add_state(op: <isize as HasState>::State) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HasState` is not implemented for `isize`
|
2023-09-10 03:33:07 +00:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
2024-02-09 12:17:55 +00:00
|
|
|
--> $DIR/issue-18611.rs:6:1
|
2023-09-10 03:33:07 +00:00
|
|
|
|
|
|
|
|
LL | trait HasState {
|
|
|
|
| ^^^^^^^^^^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2024-02-09 12:17:55 +00:00
|
|
|
error[E0277]: the trait bound `isize: HasState` is not satisfied
|
2024-12-25 02:43:27 +00:00
|
|
|
--> $DIR/issue-18611.rs:1:18
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
2024-12-25 02:43:27 +00:00
|
|
|
LL | fn add_state(op: <isize as HasState>::State) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HasState` is not implemented for `isize`
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/issue-18611.rs:6:1
|
|
|
|
|
|
|
|
|
LL | trait HasState {
|
|
|
|
| ^^^^^^^^^^^^^^
|
2024-12-25 02:43:27 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|