2024-09-24 10:53:19 -04:00
|
|
|
error: `-Znext-solver=globally` and `generic_const_exprs` are incompatible, using them at the same time is not allowed
|
|
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:5:39
|
|
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects, generic_const_exprs)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: remove one of these features
|
|
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error[E0277]: the trait bound `T: const Trait` is not satisfied
|
2024-10-02 19:42:06 +08:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:29:37
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^^^^^^^
|
2023-12-31 18:23:23 +01:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error[E0277]: the trait bound `T: const Trait` is not satisfied
|
2024-10-02 19:42:06 +08:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:33:50
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
LL | const fn accept1<T: ~const Trait>(_: Container<{ T::make() }>) {}
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^^^^^^^
|
2023-12-31 18:23:23 +01:00
|
|
|
|
2024-10-02 19:42:06 +08:00
|
|
|
error[E0277]: the trait bound `Ty: const Trait` is not satisfied
|
2024-10-20 19:49:11 +00:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:22:5
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
LL | require::<Ty>();
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
note: required by a bound in `require`
|
2024-09-24 10:53:19 -04:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:8:15
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
LL | fn require<T: const Trait>() {}
|
2024-10-26 20:54:38 +00:00
|
|
|
| ^^^^^ required by this bound in `require`
|
2023-12-31 18:23:23 +01:00
|
|
|
|
2024-09-24 10:53:19 -04:00
|
|
|
error: aborting due to 4 previous errors
|
2023-12-31 18:23:23 +01:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|