File: cycle-iat-inside-of-where-predicate.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 934,128 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; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (37 lines) | stat: -rw-r--r-- 1,666 bytes parent folder | download | duplicates (10)
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
32
33
34
35
36
37
error[E0391]: cycle detected when computing predicates of `user`
  --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
   |
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: ...which requires computing explicit predicates of `user`...
  --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
   |
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires computing normalized predicates of `user`...
  --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
   |
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which again requires computing predicates of `user`, completing the cycle
note: cycle used when checking that `user` is well-formed
  --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
   |
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information

error[E0392]: type parameter `T` is never used
  --> $DIR/cycle-iat-inside-of-where-predicate.rs:10:10
   |
LL | struct S<T>;
   |          ^ unused type parameter
   |
   = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `T` to be a const parameter, use `const T: /* Type */` instead

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0391, E0392.
For more information about an error, try `rustc --explain E0391`.