|
| 1 | +error[E0223]: ambiguous associated type |
| 2 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:13:5 |
| 3 | + | |
| 4 | +LL | String::from::utf8; |
| 5 | + | ^^^^^^^^^^^^ |
| 6 | + | |
| 7 | +help: there is an associated function with a similar name: `from_utf8` |
| 8 | + | |
| 9 | +LL | String::from_utf8; |
| 10 | + | ~~~~~~~~~ |
| 11 | + |
| 12 | +error[E0223]: ambiguous associated type |
| 13 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:16:5 |
| 14 | + | |
| 15 | +LL | String::from::utf8(); |
| 16 | + | ^^^^^^^^^^^^ |
| 17 | + | |
| 18 | +help: there is an associated function with a similar name: `from_utf8` |
| 19 | + | |
| 20 | +LL | String::from_utf8(); |
| 21 | + | ~~~~~~~~~ |
| 22 | + |
| 23 | +error[E0223]: ambiguous associated type |
| 24 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:19:5 |
| 25 | + | |
| 26 | +LL | String::from::utf16(); |
| 27 | + | ^^^^^^^^^^^^ |
| 28 | + | |
| 29 | +help: there is an associated function with a similar name: `from_utf16` |
| 30 | + | |
| 31 | +LL | String::from_utf16(); |
| 32 | + | ~~~~~~~~~~ |
| 33 | + |
| 34 | +error[E0223]: ambiguous associated type |
| 35 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:22:5 |
| 36 | + | |
| 37 | +LL | String::from::method_that_doesnt_exist(); |
| 38 | + | ^^^^^^^^^^^^ |
| 39 | + | |
| 40 | +help: if there were a trait named `Example` with associated type `from` implemented for `String`, you could use the fully-qualified path |
| 41 | + | |
| 42 | +LL | <String as Example>::from::method_that_doesnt_exist(); |
| 43 | + | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 44 | + |
| 45 | +error[E0223]: ambiguous associated type |
| 46 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:25:5 |
| 47 | + | |
| 48 | +LL | str::into::string(); |
| 49 | + | ^^^^^^^^^ |
| 50 | + | |
| 51 | +help: there is an associated function with a similar name: `into_string` |
| 52 | + | |
| 53 | +LL | str::into_string(); |
| 54 | + | ~~~~~~~~~~~ |
| 55 | + |
| 56 | +error[E0223]: ambiguous associated type |
| 57 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:28:5 |
| 58 | + | |
| 59 | +LL | str::char::indices(); |
| 60 | + | ^^^^^^^^^ |
| 61 | + | |
| 62 | +help: there is an associated function with a similar name: `char_indices` |
| 63 | + | |
| 64 | +LL | str::char_indices(); |
| 65 | + | ~~~~~~~~~~~~ |
| 66 | + |
| 67 | +error[E0223]: ambiguous associated type |
| 68 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:31:5 |
| 69 | + | |
| 70 | +LL | Foo::bar::baz; |
| 71 | + | ^^^^^^^^ |
| 72 | + | |
| 73 | +help: there is an associated function with a similar name: `bar_baz` |
| 74 | + | |
| 75 | +LL | Foo::bar_baz; |
| 76 | + | ~~~~~~~ |
| 77 | + |
| 78 | +error[E0223]: ambiguous associated type |
| 79 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:34:5 |
| 80 | + | |
| 81 | +LL | Foo::bar::quux; |
| 82 | + | ^^^^^^^^ |
| 83 | + | |
| 84 | +help: there is an associated function with a similar name: `bar_quux` |
| 85 | + | |
| 86 | +LL | Foo::bar_quux; |
| 87 | + | ~~~~~~~~ |
| 88 | + |
| 89 | +error[E0223]: ambiguous associated type |
| 90 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:37:5 |
| 91 | + | |
| 92 | +LL | Foo::bar::fizz; |
| 93 | + | ^^^^^^^^ |
| 94 | + | |
| 95 | +help: if there were a trait named `Example` with associated type `bar` implemented for `Foo`, you could use the fully-qualified path |
| 96 | + | |
| 97 | +LL | <Foo as Example>::bar::fizz; |
| 98 | + | ~~~~~~~~~~~~~~~~~~~~~ |
| 99 | + |
| 100 | +error[E0223]: ambiguous associated type |
| 101 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:40:5 |
| 102 | + | |
| 103 | +LL | i32::wrapping::add; |
| 104 | + | ^^^^^^^^^^^^^ |
| 105 | + | |
| 106 | +help: there is an associated function with a similar name: `wrapping_add` |
| 107 | + | |
| 108 | +LL | i32::wrapping_add; |
| 109 | + | ~~~~~~~~~~~~ |
| 110 | + |
| 111 | +error[E0223]: ambiguous associated type |
| 112 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:43:5 |
| 113 | + | |
| 114 | +LL | i32::wrapping::method_that_doesnt_exist; |
| 115 | + | ^^^^^^^^^^^^^ |
| 116 | + | |
| 117 | +help: if there were a trait named `Example` with associated type `wrapping` implemented for `i32`, you could use the fully-qualified path |
| 118 | + | |
| 119 | +LL | <i32 as Example>::wrapping::method_that_doesnt_exist; |
| 120 | + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 121 | + |
| 122 | +error[E0223]: ambiguous associated type |
| 123 | + --> $DIR/ambiguous-assoc-type-path-suggest-similar-item.rs:48:5 |
| 124 | + | |
| 125 | +LL | <dyn std::any::Any>::downcast::mut_unchecked; |
| 126 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 127 | + | |
| 128 | +help: if there were a trait named `Example` with associated type `downcast` implemented for `(dyn Any + 'static)`, you could use the fully-qualified path |
| 129 | + | |
| 130 | +LL | <(dyn Any + 'static) as Example>::downcast::mut_unchecked; |
| 131 | + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 132 | + |
| 133 | +error: aborting due to 12 previous errors |
| 134 | + |
| 135 | +For more information about this error, try `rustc --explain E0223`. |
0 commit comments