Files
rust/tests/ui/traits/next-solver/cycles/inductive-cycle-but-err.stderr

35 lines
1.2 KiB
Plaintext
Raw Normal View History

error[E0275]: overflow evaluating the requirement `MultipleNested: Trait`
--> $DIR/inductive-cycle-but-err.rs:43:16
|
LL | impl Trait for MultipleNested
| ^^^^^^^^^^^^^^
error[E0275]: overflow evaluating the requirement `MultipleCandidates: Trait`
--> $DIR/inductive-cycle-but-err.rs:46:25
|
LL | MultipleCandidates: Trait,
| ^^^^^
2023-08-10 12:56:53 +02:00
error[E0277]: the trait bound `MultipleCandidates: Trait` is not satisfied
--> $DIR/inductive-cycle-but-err.rs:54:19
2023-08-10 12:56:53 +02:00
|
LL | impls_trait::<MultipleCandidates>();
| ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
2023-08-10 12:56:53 +02:00
|
help: the trait `Trait` is not implemented for `MultipleCandidates`
--> $DIR/inductive-cycle-but-err.rs:18:1
|
LL | struct MultipleCandidates;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-10 12:56:53 +02:00
= help: the trait `Trait` is implemented for `MultipleCandidates`
note: required by a bound in `impls_trait`
--> $DIR/inductive-cycle-but-err.rs:51:19
2023-08-10 12:56:53 +02:00
|
LL | fn impls_trait<T: Trait>() {}
| ^^^^^ required by this bound in `impls_trait`
error: aborting due to 3 previous errors
2023-08-10 12:56:53 +02:00
Some errors have detailed explanations: E0275, E0277.
For more information about an error, try `rustc --explain E0275`.