rust/tests/ui/issues/issue-39970.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
786 B
Plaintext
Raw Normal View History

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
|
note: expected this to be `()`
--> $DIR/issue-39970.rs:10:20
|
LL | type Element = &'a ();
| ^^^^^^
note: required for `()` to implement `Visit`
--> $DIR/issue-39970.rs:13:6
|
LL | impl Visit for () where
| ^^^^^ ^^
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
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`.