blob: 555d8eec6babf78d5928bd9be4615eaabf5945c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
error[E0658]: associated const equality is incomplete
--> $DIR/no-name-for-DefPath-issue-133426.rs:16:23
|
LL | fn b(_: impl Iterator<Item = { match 0 { ! } }>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0614]: type `!` cannot be dereferenced
--> $DIR/no-name-for-DefPath-issue-133426.rs:10:19
|
LL | match *todo!() { ! };
| ^^^^^^^^ can't be dereferenced
error: expected type, found constant
--> $DIR/no-name-for-DefPath-issue-133426.rs:16:30
|
LL | fn b(_: impl Iterator<Item = { match 0 { ! } }>) {}
| ---- ^^^^^^^^^^^^^^^^^ unexpected constant
| |
| expected a type because of this associated type
|
note: the associated type is defined here
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0614, E0658.
For more information about an error, try `rustc --explain E0614`.
|