]>
Commit | Line | Data |
---|---|---|
49aad941 FG |
1 | error[E0635]: unknown feature `const_fn_trait_ref_impls` |
2 | --> $DIR/fn_trait_refs.rs:3:12 | |
3 | | | |
4 | LL | #![feature(const_fn_trait_ref_impls)] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | ||
781aab86 FG |
7 | error: ~const can only be applied to `#[const_trait]` traits |
8 | --> $DIR/fn_trait_refs.rs:15:15 | |
9 | | | |
10 | LL | T: ~const Fn<()> + ~const Destruct, | |
11 | | ^^^^^^ | |
12 | ||
13 | error: ~const can only be applied to `#[const_trait]` traits | |
14 | --> $DIR/fn_trait_refs.rs:15:15 | |
15 | | | |
16 | LL | T: ~const Fn<()> + ~const Destruct, | |
17 | | ^^^^^^ | |
ed00b5ec FG |
18 | | |
19 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
781aab86 FG |
20 | |
21 | error: ~const can only be applied to `#[const_trait]` traits | |
22 | --> $DIR/fn_trait_refs.rs:22:15 | |
23 | | | |
24 | LL | T: ~const FnMut<()> + ~const Destruct, | |
25 | | ^^^^^^^^^ | |
26 | ||
27 | error: ~const can only be applied to `#[const_trait]` traits | |
28 | --> $DIR/fn_trait_refs.rs:22:15 | |
29 | | | |
30 | LL | T: ~const FnMut<()> + ~const Destruct, | |
31 | | ^^^^^^^^^ | |
ed00b5ec FG |
32 | | |
33 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
781aab86 FG |
34 | |
35 | error: ~const can only be applied to `#[const_trait]` traits | |
36 | --> $DIR/fn_trait_refs.rs:29:15 | |
37 | | | |
38 | LL | T: ~const FnOnce<()>, | |
39 | | ^^^^^^^^^^ | |
40 | ||
41 | error: ~const can only be applied to `#[const_trait]` traits | |
42 | --> $DIR/fn_trait_refs.rs:29:15 | |
43 | | | |
44 | LL | T: ~const FnOnce<()>, | |
45 | | ^^^^^^^^^^ | |
ed00b5ec FG |
46 | | |
47 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
781aab86 FG |
48 | |
49 | error: ~const can only be applied to `#[const_trait]` traits | |
50 | --> $DIR/fn_trait_refs.rs:36:15 | |
51 | | | |
52 | LL | T: ~const Fn<()> + ~const Destruct, | |
53 | | ^^^^^^ | |
54 | ||
55 | error: ~const can only be applied to `#[const_trait]` traits | |
56 | --> $DIR/fn_trait_refs.rs:36:15 | |
57 | | | |
58 | LL | T: ~const Fn<()> + ~const Destruct, | |
59 | | ^^^^^^ | |
ed00b5ec FG |
60 | | |
61 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
781aab86 FG |
62 | |
63 | error: ~const can only be applied to `#[const_trait]` traits | |
64 | --> $DIR/fn_trait_refs.rs:50:15 | |
65 | | | |
66 | LL | T: ~const FnMut<()> + ~const Destruct, | |
67 | | ^^^^^^^^^ | |
68 | ||
69 | error: ~const can only be applied to `#[const_trait]` traits | |
70 | --> $DIR/fn_trait_refs.rs:50:15 | |
71 | | | |
72 | LL | T: ~const FnMut<()> + ~const Destruct, | |
73 | | ^^^^^^^^^ | |
ed00b5ec FG |
74 | | |
75 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
781aab86 | 76 | |
4b012472 | 77 | error: aborting due to 11 previous errors |
49aad941 FG |
78 | |
79 | For more information about this error, try `rustc --explain E0635`. |