aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/project/ambiguous-let.stderr
blob: 2e66484659331587579d8564c5bab230b0b081b4 (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:18:9
   |
18 |     let Struct(x) = match Pin::new(&mut foo).project() {
   |         ^^^^^^^^^