Files
rust/tests/ui/traits/const-traits/item-bound-entailment-fails.stderr

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

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-10-21 20:16:33 +00:00
error[E0277]: the trait bound `N<T>: ~const Bar` is not satisfied
2024-10-30 18:03:44 +00:00
--> $DIR/item-bound-entailment-fails.rs:17:21
2024-10-21 20:16:33 +00:00
|
LL | type Assoc<T> = N<T>
| ^^^^
|
note: required by a bound in `Foo::Assoc`
2024-10-30 18:03:44 +00:00
--> $DIR/item-bound-entailment-fails.rs:5:20
2024-10-21 20:16:33 +00:00
|
LL | type Assoc<T>: ~const Bar
| ^^^^^^^^^^ required by this bound in `Foo::Assoc`
2024-10-21 20:16:33 +00:00
error[E0277]: the trait bound `T: ~const Bar` is not satisfied
2024-10-30 18:03:44 +00:00
--> $DIR/item-bound-entailment-fails.rs:24:21
2024-10-21 20:16:33 +00:00
|
LL | type Assoc<T> = C<T>
| ^^^^
|
note: required for `C<T>` to implement `~const Bar`
--> $DIR/item-bound-entailment-fails.rs:14:15
|
LL | impl<T> const Bar for C<T> where T: ~const Bar {}
| ^^^ ^^^^ ---------- unsatisfied trait bound introduced here
2024-10-21 20:16:33 +00:00
note: required by a bound in `Foo::Assoc`
2024-10-30 18:03:44 +00:00
--> $DIR/item-bound-entailment-fails.rs:5:20
2024-10-21 20:16:33 +00:00
|
LL | type Assoc<T>: ~const Bar
| ^^^^^^^^^^ required by this bound in `Foo::Assoc`
2024-10-21 20:16:33 +00:00
2024-10-30 18:03:44 +00:00
error: aborting due to 2 previous errors
2024-10-21 20:16:33 +00:00
For more information about this error, try `rustc --explain E0277`.