rust/tests/ui/traits/const-traits/std-impl-gate.gated.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
716 B
Plaintext
Raw Normal View History

2023-04-16 11:12:37 +00:00
error[E0635]: unknown feature `const_default_impls`
--> $DIR/std-impl-gate.rs:6:46
|
LL | #![cfg_attr(gated, feature(const_trait_impl, const_default_impls))]
| ^^^^^^^^^^^^^^^^^^^
2024-12-23 21:49:48 +00:00
error[E0015]: cannot call non-const associated function `<Vec<usize> as Default>::default` in constant functions
--> $DIR/std-impl-gate.rs:13:5
|
LL | Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
error: aborting due to 2 previous errors
2023-04-16 11:12:37 +00:00
Some errors have detailed explanations: E0015, E0635.
For more information about an error, try `rustc --explain E0015`.