Files
rust/tests/ui/consts/trait_alias.fail.stderr
2025-10-30 08:05:37 +00:00

24 lines
679 B
Plaintext

error[E0277]: the trait bound `T: [const] Baz` is not satisfied
--> $DIR/trait_alias.rs:23:11
|
LL | x.baz();
| ^^^
error[E0277]: the trait bound `(): const Foo` is not satisfied
--> $DIR/trait_alias.rs:28:19
|
LL | const _: () = foo(&());
| --- ^^^
| |
| required by a bound introduced by this call
|
note: required by a bound in `foo`
--> $DIR/trait_alias.rs:19:17
|
LL | const fn foo<T: [const] Foo>(x: &T) {
| ^^^^^^^^^^^ required by this bound in `foo`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.