summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-parse-not-item.stderr
blob: f25390a9070e17398a93fe17f22f01a3d87f08d1 (plain)
1
2
3
4
5
6
7
8
error: ~const can only be applied to `#[const_trait]` traits
  --> $DIR/const-closure-parse-not-item.rs:7:32
   |
LL | const fn test() -> impl ~const Fn() {
   |                                ^^^^

error: aborting due to previous error