mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:36:9
|
|
|
|
|
LL | impl<T: [const] Debug> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
|
|
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:42:9
|
|
|
|
|
LL | impl<T: [const] Debug + [const] Sup> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
|
|
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:48:9
|
|
|
|
|
LL | impl<T: [const] Debug + [const] Sub> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
|
|
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:42:9
|
|
|
|
|
LL | impl<T: [const] Debug + [const] Sup> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:36:9
|
|
|
|
|
LL | impl<T: [const] Debug> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: `[const]` can only be applied to `const` traits
|
|
--> $DIR/const_trait_impl.rs:48:9
|
|
|
|
|
LL | impl<T: [const] Debug + [const] Sub> const A for T {
|
|
| ^^^^^^^ can't be applied to `Debug`
|
|
|
|
|
note: `Debug` can't be used with `[const]` because it isn't `const`
|
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|