fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/shadowed-lplace-method-2.rs:22:17 3 | 4LL | *x.foo(0) = (); 5 | --------- ^^ expected `X`, found `()` 6 | | 7 | expected due to the type of this binding 8 | 9note: the `foo` call is resolved to the method in `X`, shadowing the method of the same name on trait `A` 10 --> $DIR/shadowed-lplace-method-2.rs:22:8 11 | 12LL | *x.foo(0) = (); 13 | ^^^ refers to `X::foo` 14help: you might have meant to call the other method; you can use the fully-qualified path to call it explicitly 15 | 16LL | *<_ as A>::foo(&mut x, 0) = (); 17 | ++++++++++++++++++ ~ 18help: try wrapping the expression in `X` 19 | 20LL | *x.foo(0) = X { x: () }; 21 | ++++++ + 22 23error: aborting due to previous error 24 25For more information about this error, try `rustc --explain E0308`.