2023-04-16 06:12:37 -05:00
|
|
|
error[E0635]: unknown feature `const_fn_trait_ref_impls`
|
|
|
|
--> $DIR/fn_trait_refs.rs:3:12
|
|
|
|
|
|
|
|
|
LL | #![feature(const_fn_trait_ref_impls)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:15:15
|
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
|
|
|
| ^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:15:15
|
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
|
|
|
| ^^^^^^
|
2023-10-04 13:34:50 -05:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 04:02:31 -05:00
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:22:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:22:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
|
|
|
| ^^^^^^^^^
|
2023-10-04 13:34:50 -05:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 04:02:31 -05:00
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:29:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnOnce<()>,
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:29:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnOnce<()>,
|
|
|
|
| ^^^^^^^^^^
|
2023-10-04 13:34:50 -05:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 04:02:31 -05:00
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:36:15
|
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
|
|
|
| ^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:36:15
|
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
|
|
|
| ^^^^^^
|
2023-10-04 13:34:50 -05:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 04:02:31 -05:00
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:50:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-12-18 10:55:55 -06:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2023-08-13 04:02:31 -05:00
|
|
|
--> $DIR/fn_trait_refs.rs:50:15
|
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
|
|
|
| ^^^^^^^^^
|
2023-10-04 13:34:50 -05:00
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 04:02:31 -05:00
|
|
|
|
2023-12-10 04:42:34 -06:00
|
|
|
error: aborting due to 11 previous errors
|
2023-04-16 06:12:37 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0635`.
|