Files
rust/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/trait-selection-sanity.without_impl.stderr

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

17 lines
612 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `&_: main::Ref` is not satisfied
--> $DIR/trait-selection-sanity.rs:28:19
|
LL | let (&_, b) = generic();
| ^^^^^^^^^ the trait `main::Ref` is not implemented for `&_`
|
= help: the trait `main::Ref` is implemented for `&'static mut [(); 0]`
note: required by a bound in `generic`
--> $DIR/trait-selection-sanity.rs:7:19
|
LL | fn generic<R: Ref>() -> (R, bool) {
| ^^^ required by this bound in `generic`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.