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
|
2024-10-30 18:03:44 +00:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:5:30
|
2024-09-24 10:53:19 -04:00
|
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
LL | #![feature(const_trait_impl, generic_const_exprs)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2024-09-24 10:53:19 -04:00
|
|
|
|
|
|
|
|
|
= 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-11-24 01:15:04 +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-11-24 01:15:04 +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-11-24 01:15:04 +00:00
|
|
|
--> $DIR/unsatisfied-const-trait-bound.rs:22:15
|
2023-12-31 18:23:23 +01:00
|
|
|
|
|
|
|
|
|
LL | require::<Ty>();
|
2024-11-24 01:15:04 +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>() {}
|
2025-04-01 16:21:50 +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`.
|