fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0282]: type annotations needed 2 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:45:15 3 | 4LL | ref_thing.method(); 5 | ^^^^^^ 6 | 7help: try using a fully qualified path to specify the expected types 8 | 9LL | <Thing as Method<T>>::method(ref_thing); 10 | +++++++++++++++++++++++++++++ ~ 11 12error[E0283]: type annotations needed 13 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:45:15 14 | 15LL | ref_thing.method(); 16 | ^^^^^^ 17 | 18note: multiple `impl`s satisfying `Thing: Method<_>` found 19 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 20 | 21LL | impl Method<i32> for Thing { 22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 23... 24LL | impl Method<u32> for Thing { 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 26help: try using a fully qualified path to specify the expected types 27 | 28LL | <Thing as Method<T>>::method(ref_thing); 29 | +++++++++++++++++++++++++++++ ~ 30 31error[E0283]: type annotations needed 32 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:48:15 33 | 34LL | ref_thing.by_self(); 35 | ^^^^^^^ 36 | 37note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found 38 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1 39 | 40LL | impl MethodRef<i32> for &Thing { 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42... 43LL | impl MethodRef<u32> for &Thing { 44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 45help: try using a fully qualified path to specify the expected types 46 | 47LL | <&Thing as MethodRef<T>>::by_self(ref_thing); 48 | ++++++++++++++++++++++++++++++++++ ~ 49 50error[E0283]: type annotations needed 51 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:51:15 52 | 53LL | mut_thing.method(); 54 | ^^^^^^ 55 | 56note: multiple `impl`s satisfying `Thing: Method<_>` found 57 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 58 | 59LL | impl Method<i32> for Thing { 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 61... 62LL | impl Method<u32> for Thing { 63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 64help: try using a fully qualified path to specify the expected types 65 | 66LL | <Thing as Method<T>>::method(mut_thing); 67 | +++++++++++++++++++++++++++++ ~ 68 69error[E0283]: type annotations needed 70 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:52:15 71 | 72LL | mut_thing.mut_method(); 73 | ^^^^^^^^^^ 74 | 75note: multiple `impl`s satisfying `Thing: Method<_>` found 76 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 77 | 78LL | impl Method<i32> for Thing { 79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 80... 81LL | impl Method<u32> for Thing { 82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 83help: try using a fully qualified path to specify the expected types 84 | 85LL | <Thing as Method<T>>::mut_method(mut_thing); 86 | +++++++++++++++++++++++++++++++++ ~ 87 88error[E0283]: type annotations needed 89 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:53:15 90 | 91LL | mut_thing.by_self(); 92 | ^^^^^^^ 93 | 94note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found 95 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1 96 | 97LL | impl MethodRef<i32> for &Thing { 98 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 99... 100LL | impl MethodRef<u32> for &Thing { 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 102help: try using a fully qualified path to specify the expected types 103 | 104LL | <&Thing as MethodRef<T>>::by_self(mut_thing); 105 | ++++++++++++++++++++++++++++++++++ ~ 106 107error[E0283]: type annotations needed 108 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:56:14 109 | 110LL | deref_to.method(); 111 | ^^^^^^ 112 | 113note: multiple `impl`s satisfying `Thing: Method<_>` found 114 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 115 | 116LL | impl Method<i32> for Thing { 117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 118... 119LL | impl Method<u32> for Thing { 120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 121help: try using a fully qualified path to specify the expected types 122 | 123LL | <Thing as Method<T>>::method(deref_to); 124 | +++++++++++++++++++++++++++++ ~ 125 126error[E0283]: type annotations needed 127 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:57:14 128 | 129LL | deref_to.mut_method(); 130 | ^^^^^^^^^^ 131 | 132note: multiple `impl`s satisfying `Thing: Method<_>` found 133 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 134 | 135LL | impl Method<i32> for Thing { 136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 137... 138LL | impl Method<u32> for Thing { 139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 140help: try using a fully qualified path to specify the expected types 141 | 142LL | <Thing as Method<T>>::mut_method(deref_to); 143 | +++++++++++++++++++++++++++++++++ ~ 144 145error[E0283]: type annotations needed 146 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:58:14 147 | 148LL | deref_to.by_self(); 149 | ^^^^^^^ 150 | 151note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found 152 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1 153 | 154LL | impl MethodRef<i32> for &Thing { 155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156... 157LL | impl MethodRef<u32> for &Thing { 158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 159help: try using a fully qualified path to specify the expected types 160 | 161LL | <&Thing as MethodRef<T>>::by_self(deref_to); 162 | ++++++++++++++++++++++++++++++++++ ~ 163 164error[E0283]: type annotations needed 165 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:61:20 166 | 167LL | deref_deref_to.method(); 168 | ^^^^^^ 169 | 170note: multiple `impl`s satisfying `Thing: Method<_>` found 171 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 172 | 173LL | impl Method<i32> for Thing { 174 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 175... 176LL | impl Method<u32> for Thing { 177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 178help: try using a fully qualified path to specify the expected types 179 | 180LL | <Thing as Method<T>>::method(deref_deref_to); 181 | +++++++++++++++++++++++++++++ ~ 182 183error[E0283]: type annotations needed 184 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:62:20 185 | 186LL | deref_deref_to.mut_method(); 187 | ^^^^^^^^^^ 188 | 189note: multiple `impl`s satisfying `Thing: Method<_>` found 190 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:10:1 191 | 192LL | impl Method<i32> for Thing { 193 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 194... 195LL | impl Method<u32> for Thing { 196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 197help: try using a fully qualified path to specify the expected types 198 | 199LL | <Thing as Method<T>>::mut_method(deref_deref_to); 200 | +++++++++++++++++++++++++++++++++ ~ 201 202error[E0283]: type annotations needed 203 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:63:20 204 | 205LL | deref_deref_to.by_self(); 206 | ^^^^^^^ 207 | 208note: multiple `impl`s satisfying `&Thing: MethodRef<_>` found 209 --> $DIR/suggest-fully-qualified-path-without-adjustment.rs:23:1 210 | 211LL | impl MethodRef<i32> for &Thing { 212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213... 214LL | impl MethodRef<u32> for &Thing { 215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 216help: try using a fully qualified path to specify the expected types 217 | 218LL | <&Thing as MethodRef<T>>::by_self(deref_deref_to); 219 | ++++++++++++++++++++++++++++++++++ ~ 220 221error: aborting due to 12 previous errors 222 223Some errors have detailed explanations: E0282, E0283. 224For more information about an error, try `rustc --explain E0282`.