aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/project/ambiguous-let.stderr
blob: e6552c83ec086db0fe005569ee59284365938a28 (plain)
1
2
3
4
5
error: Both initializer expression and pattern are replaceable, you need to split the initializer expression into separate let bindings to avoid ambiguity
  --> $DIR/ambiguous-let.rs:16:9
   |
16 |     let Struct(x) = match Pin::new(&mut foo).project() {
   |         ^^^^^^^^^