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