2024-06-30 12:08:45 -05:00
|
|
|
error: using `#![feature(effects)]` without enabling next trait solver globally
|
|
|
|
|
|
|
|
|
= note: the next trait solver must be enabled globally for the effects feature to work correctly
|
|
|
|
= help: use `-Znext-solver` to enable
|
|
|
|
|
2024-06-25 04:50:01 -05:00
|
|
|
error[E0308]: mismatched types
|
2024-06-25 03:36:40 -05:00
|
|
|
--> $DIR/constifconst-call-in-const-position.rs:17:38
|
2022-10-02 01:05:45 -05:00
|
|
|
|
|
|
|
|
LL | const fn foo<T: ~const Tr>() -> [u8; T::a()] {
|
2024-06-25 04:50:01 -05:00
|
|
|
| ^^^^^^ expected `false`, found `host`
|
|
|
|
|
|
|
|
|
= note: expected constant `false`
|
|
|
|
found constant `host`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/constifconst-call-in-const-position.rs:18:9
|
|
|
|
|
|
|
|
|
LL | [0; T::a()]
|
|
|
|
| ^^^^^^ expected `false`, found `host`
|
|
|
|
|
|
|
|
|
= note: expected constant `false`
|
|
|
|
found constant `host`
|
2022-10-02 01:05:45 -05:00
|
|
|
|
2024-06-30 12:08:45 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2022-10-02 01:05:45 -05:00
|
|
|
|
2024-06-25 04:50:01 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|