fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/suggest-remove-deref.rs:13:9 3 | 4LL | foo(*hello); 5 | --- ^^^^^^ expected `&_`, found `S` 6 | | 7 | arguments to this function are incorrect 8 | 9 = note: expected reference `&_` 10 found struct `S` 11note: function defined here 12 --> $DIR/suggest-remove-deref.rs:10:4 13 | 14LL | fn foo<T: X>(_: &T) {} 15 | ^^^ ----- 16help: consider removing deref here 17 | 18LL - foo(*hello); 19LL + foo(hello); 20 | 21 22error[E0308]: mismatched types 23 --> $DIR/suggest-remove-deref.rs:21:9 24 | 25LL | bar(*s); 26 | --- ^^ expected `&String`, found `String` 27 | | 28 | arguments to this function are incorrect 29 | 30note: function defined here 31 --> $DIR/suggest-remove-deref.rs:17:4 32 | 33LL | fn bar(_: &String) {} 34 | ^^^ ---------- 35help: consider removing deref here 36 | 37LL - bar(*s); 38LL + bar(s); 39 | 40 41error: aborting due to 2 previous errors 42 43For more information about this error, try `rustc --explain E0308`.