2023-01-06 20:15:10 +00:00
|
|
|
error[E0271]: type mismatch resolving `<() as Array<'a>>::Element == ()`
|
2023-08-25 18:28:34 +00:00
|
|
|
--> $DIR/issue-39970.rs:19:6
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | <() as Visit>::visit();
|
2023-08-25 18:28:34 +00:00
|
|
|
| ^^ type mismatch resolving `<() as Array<'a>>::Element == ()`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2021-12-11 02:20:41 +00:00
|
|
|
note: expected this to be `()`
|
|
|
|
--> $DIR/issue-39970.rs:10:20
|
|
|
|
|
|
|
|
|
LL | type Element = &'a ();
|
|
|
|
| ^^^^^^
|
2022-08-15 20:31:37 +00:00
|
|
|
note: required for `()` to implement `Visit`
|
2021-03-30 20:37:30 +00:00
|
|
|
--> $DIR/issue-39970.rs:13:6
|
|
|
|
|
|
|
|
|
LL | impl Visit for () where
|
|
|
|
| ^^^^^ ^^
|
2023-01-11 03:21:11 +00:00
|
|
|
LL | //(): for<'a> Array<'a, Element=&'a ()>, // No ICE
|
|
|
|
LL | (): for<'a> Array<'a, Element=()>, // ICE
|
|
|
|
| ---------- unsatisfied trait bound introduced here
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|