Files
rust/tests/ui/traits/const-traits/const-closure-trait-method-fail.stderr

10 lines
343 B
Plaintext
Raw Normal View History

2025-07-03 09:14:56 +00:00
error[E0277]: the trait bound `(): const Tr` is not satisfied
--> $DIR/const-closure-trait-method-fail.rs:18:23
|
2025-07-03 09:14:56 +00:00
LL | const _: () = assert!(need_const_closure(Tr::a) == 42);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-03 09:14:56 +00:00
error: aborting due to 1 previous error
2025-07-03 09:14:56 +00:00
For more information about this error, try `rustc --explain E0277`.