File: no-name-for-DefPath-issue-133426.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid
  • size: 934,168 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (31 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (9)
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`.