Files
rust/tests/ui/traits/const-traits/non-const-op-const-closure-non-const-outer.stderr

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

10 lines
388 B
Plaintext
Raw Normal View History

2025-07-03 09:14:56 +00:00
error[E0277]: the trait bound `{closure@$DIR/non-const-op-const-closure-non-const-outer.rs:13:6: 13:14}: [const] Fn()` is not satisfied
--> $DIR/non-const-op-const-closure-non-const-outer.rs:13:5
2022-12-22 18:15:15 +00:00
|
LL | (const || { (()).foo() })();
2025-07-03 09:14:56 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-12-22 18:15:15 +00:00
error: aborting due to 1 previous error
2022-12-22 18:15:15 +00:00
2025-07-03 09:14:56 +00:00
For more information about this error, try `rustc --explain E0277`.