Files
rust/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/trait-selection-sanity.without_impl.stderr
dianne b350d94877 reorganize and comment some of the experimental pattern typing tests
This only includes previously existing tests (with a couple duplicates
removed). I plan on adding more comprarisons where the rules differ
once I've updated the pattern typing rules. I also haven't touched the
tests for new rules in old editions; I'll see how best to handle that
once those rules are updated as well.
2025-01-08 00:07:18 -08:00

17 lines
612 B
Plaintext

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`.