rust/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.stderr

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

22 lines
562 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2023-07-29 03:20:25 -05:00
--> $DIR/trait-where-clause-const.rs:21:5
|
LL | T::b();
| ^^^^^^ expected `host`, found `true`
2023-07-29 03:20:25 -05:00
|
= note: expected constant `host`
found constant `true`
2023-07-29 03:20:25 -05:00
error[E0308]: mismatched types
--> $DIR/trait-where-clause-const.rs:23:5
2023-07-29 03:20:25 -05:00
|
LL | T::c::<T>();
| ^^^^^^^^^^^ expected `host`, found `true`
2023-07-29 03:20:25 -05:00
|
= note: expected constant `host`
found constant `true`
2023-07-29 03:20:25 -05:00
error: aborting due to 2 previous errors
2023-07-29 03:20:25 -05:00
For more information about this error, try `rustc --explain E0308`.