2023-04-16 11:12:37 +00:00
|
|
|
error[E0635]: unknown feature `const_fn_trait_ref_impls`
|
|
|
|
--> $DIR/fn_trait_refs.rs:3:12
|
|
|
|
|
|
|
|
|
LL | #![feature(const_fn_trait_ref_impls)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-06-21 11:57:24 +00:00
|
|
|
error[E0635]: unknown feature `const_cmp`
|
2024-08-17 12:19:34 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:7:12
|
2024-06-21 11:57:24 +00:00
|
|
|
|
|
|
|
|
LL | #![feature(const_cmp)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:14:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
|
|
|
|
|
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:14:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:14:8
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:21:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
|
|
|
|
|
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:21:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:21:8
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:28:8
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnOnce<()>,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnOnce`
|
|
|
|
|
|
|
|
|
note: `FnOnce` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:28:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnOnce<()>,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnOnce`
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnOnce` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:28:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnOnce<()>,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnOnce`
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnOnce` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:35:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
|
|
|
|
|
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:35:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:35:8
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const Fn<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `Fn`
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `Fn` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:49:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
|
|
|
|
|
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2023-12-18 16:55:55 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:49:8
|
2023-08-13 09:02:31 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
2023-10-04 18:34:50 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2023-10-04 18:34:50 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-08-13 09:02:31 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: `~const` can only be applied to `#[const_trait]` traits
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:49:8
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
|
|
|
LL | T: ~const FnMut<()> + ~const Destruct,
|
2024-12-09 19:34:43 +00:00
|
|
|
| ^^^^^^ can't be applied to `FnMut`
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-09 19:34:43 +00:00
|
|
|
note: `FnMut` can't be used with `~const` because it isn't annotated with `#[const_trait]`
|
|
|
|
--> $SRC_DIR/core/src/ops/function.rs:LL:COL
|
2024-10-20 19:49:11 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
error[E0015]: cannot call non-const operator in constants
|
|
|
|
--> $DIR/fn_trait_refs.rs:71:17
|
2024-10-20 19:49:11 +00:00
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
LL | assert!(test_one == (1, 1, 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-11-24 01:15:04 +00:00
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
2024-11-24 00:30:16 +00:00
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
error[E0015]: cannot call non-const operator in constants
|
|
|
|
--> $DIR/fn_trait_refs.rs:74:17
|
2024-11-24 01:15:04 +00:00
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
LL | assert!(test_two == (2, 2));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2024-11-24 01:15:04 +00:00
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
2024-02-14 12:28:07 +00:00
|
|
|
|
2024-02-01 22:45:00 +00:00
|
|
|
error[E0015]: cannot call non-const closure in constant functions
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:16:5
|
2024-02-01 22:45:00 +00:00
|
|
|
|
|
|
|
|
LL | f()
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
|
|
error[E0015]: cannot call non-const closure in constant functions
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:23:5
|
2024-02-01 22:45:00 +00:00
|
|
|
|
|
|
|
|
LL | f()
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
|
|
|
error[E0015]: cannot call non-const closure in constant functions
|
2024-11-21 23:20:59 +00:00
|
|
|
--> $DIR/fn_trait_refs.rs:30:5
|
2024-02-01 22:45:00 +00:00
|
|
|
|
|
|
|
|
LL | f()
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
error: aborting due to 22 previous errors
|
2023-04-16 11:12:37 +00:00
|
|
|
|
2024-12-29 04:42:21 +00:00
|
|
|
Some errors have detailed explanations: E0015, E0635.
|
2024-02-01 22:45:00 +00:00
|
|
|
For more information about an error, try `rustc --explain E0015`.
|