fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0576]: cannot find associated type `N` in trait `Tr` 2 --> $DIR/ufcs-partially-resolved.rs:19:24 3 | 4LL | type Y = u16; 5 | ------------- similarly named associated type `Y` defined here 6... 7LL | let _: <u8 as Tr>::N; 8 | ^ help: an associated type with a similar name exists: `Y` 9 10error[E0404]: expected trait, found enum `E` 11 --> $DIR/ufcs-partially-resolved.rs:20:19 12 | 13LL | let _: <u8 as E>::N; 14 | ^ help: a trait with a similar name exists: `Eq` 15 --> $SRC_DIR/core/src/cmp.rs:LL:COL 16 | 17 = note: similarly named trait `Eq` defined here 18 19error[E0404]: expected trait, found type alias `A` 20 --> $DIR/ufcs-partially-resolved.rs:21:19 21 | 22LL | let _: <u8 as A>::N; 23 | ^ type aliases cannot be used as traits 24 | 25help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias 26 | 27LL | trait A = u32; 28 | 29 30error[E0576]: cannot find method or associated constant `N` in trait `Tr` 31 --> $DIR/ufcs-partially-resolved.rs:22:17 32 | 33LL | fn Y() {} 34 | ------ similarly named associated function `Y` defined here 35... 36LL | <u8 as Tr>::N; 37 | ^ help: an associated function with a similar name exists: `Y` 38 39error[E0404]: expected trait, found enum `E` 40 --> $DIR/ufcs-partially-resolved.rs:23:12 41 | 42LL | <u8 as E>::N; 43 | ^ help: a trait with a similar name exists: `Eq` 44 --> $SRC_DIR/core/src/cmp.rs:LL:COL 45 | 46 = note: similarly named trait `Eq` defined here 47 48error[E0404]: expected trait, found type alias `A` 49 --> $DIR/ufcs-partially-resolved.rs:24:12 50 | 51LL | <u8 as A>::N; 52 | ^ type aliases cannot be used as traits 53 | 54help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias 55 | 56LL | trait A = u32; 57 | 58 59error[E0404]: expected trait, found enum `E` 60 --> $DIR/ufcs-partially-resolved.rs:26:19 61 | 62LL | let _: <u8 as E>::Y; 63 | ^ help: a trait with a similar name exists: `Eq` 64 --> $SRC_DIR/core/src/cmp.rs:LL:COL 65 | 66 = note: similarly named trait `Eq` defined here 67 68error[E0404]: expected trait, found enum `E` 69 --> $DIR/ufcs-partially-resolved.rs:28:12 70 | 71LL | <u8 as E>::Y; 72 | ^ help: a trait with a similar name exists: `Eq` 73 --> $SRC_DIR/core/src/cmp.rs:LL:COL 74 | 75 = note: similarly named trait `Eq` defined here 76 77error[E0576]: cannot find associated type `N` in trait `Tr` 78 --> $DIR/ufcs-partially-resolved.rs:30:24 79 | 80LL | type Y = u16; 81 | ------------- similarly named associated type `Y` defined here 82... 83LL | let _: <u8 as Tr>::N::NN; 84 | ^ help: an associated type with a similar name exists: `Y` 85 86error[E0404]: expected trait, found enum `E` 87 --> $DIR/ufcs-partially-resolved.rs:31:19 88 | 89LL | let _: <u8 as E>::N::NN; 90 | ^ help: a trait with a similar name exists: `Eq` 91 --> $SRC_DIR/core/src/cmp.rs:LL:COL 92 | 93 = note: similarly named trait `Eq` defined here 94 95error[E0404]: expected trait, found type alias `A` 96 --> $DIR/ufcs-partially-resolved.rs:32:19 97 | 98LL | let _: <u8 as A>::N::NN; 99 | ^ type aliases cannot be used as traits 100 | 101help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias 102 | 103LL | trait A = u32; 104 | 105 106error[E0576]: cannot find associated type `N` in trait `Tr` 107 --> $DIR/ufcs-partially-resolved.rs:33:17 108 | 109LL | type Y = u16; 110 | ------------- similarly named associated type `Y` defined here 111... 112LL | <u8 as Tr>::N::NN; 113 | ^ help: an associated type with a similar name exists: `Y` 114 115error[E0404]: expected trait, found enum `E` 116 --> $DIR/ufcs-partially-resolved.rs:34:12 117 | 118LL | <u8 as E>::N::NN; 119 | ^ help: a trait with a similar name exists: `Eq` 120 --> $SRC_DIR/core/src/cmp.rs:LL:COL 121 | 122 = note: similarly named trait `Eq` defined here 123 124error[E0404]: expected trait, found type alias `A` 125 --> $DIR/ufcs-partially-resolved.rs:35:12 126 | 127LL | <u8 as A>::N::NN; 128 | ^ type aliases cannot be used as traits 129 | 130help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias 131 | 132LL | trait A = u32; 133 | 134 135error[E0404]: expected trait, found enum `E` 136 --> $DIR/ufcs-partially-resolved.rs:37:19 137 | 138LL | let _: <u8 as E>::Y::NN; 139 | ^ help: a trait with a similar name exists: `Eq` 140 --> $SRC_DIR/core/src/cmp.rs:LL:COL 141 | 142 = note: similarly named trait `Eq` defined here 143 144error[E0404]: expected trait, found enum `E` 145 --> $DIR/ufcs-partially-resolved.rs:39:12 146 | 147LL | <u8 as E>::Y::NN; 148 | ^ help: a trait with a similar name exists: `Eq` 149 --> $SRC_DIR/core/src/cmp.rs:LL:COL 150 | 151 = note: similarly named trait `Eq` defined here 152 153error[E0405]: cannot find trait `N` in trait `Tr` 154 --> $DIR/ufcs-partially-resolved.rs:41:23 155 | 156LL | let _: <u8 as Tr::N>::NN; 157 | ^ not found in `Tr` 158 159error[E0405]: cannot find trait `N` in enum `E` 160 --> $DIR/ufcs-partially-resolved.rs:42:22 161 | 162LL | let _: <u8 as E::N>::NN; 163 | ^ not found in `E` 164 165error[E0405]: cannot find trait `N` in `A` 166 --> $DIR/ufcs-partially-resolved.rs:43:22 167 | 168LL | let _: <u8 as A::N>::NN; 169 | ^ not found in `A` 170 171error[E0405]: cannot find trait `N` in trait `Tr` 172 --> $DIR/ufcs-partially-resolved.rs:44:16 173 | 174LL | <u8 as Tr::N>::NN; 175 | ^ not found in `Tr` 176 177error[E0405]: cannot find trait `N` in enum `E` 178 --> $DIR/ufcs-partially-resolved.rs:45:15 179 | 180LL | <u8 as E::N>::NN; 181 | ^ not found in `E` 182 183error[E0405]: cannot find trait `N` in `A` 184 --> $DIR/ufcs-partially-resolved.rs:46:15 185 | 186LL | <u8 as A::N>::NN; 187 | ^ not found in `A` 188 189error[E0404]: expected trait, found associated type `Tr::Y` 190 --> $DIR/ufcs-partially-resolved.rs:47:19 191 | 192LL | let _: <u8 as Tr::Y>::NN; 193 | ^^^^^ not a trait 194 195error[E0404]: expected trait, found variant `E::Y` 196 --> $DIR/ufcs-partially-resolved.rs:48:19 197 | 198LL | let _: <u8 as E::Y>::NN; 199 | ^^^^ not a trait 200 201error[E0404]: expected trait, found associated type `Tr::Y` 202 --> $DIR/ufcs-partially-resolved.rs:49:12 203 | 204LL | <u8 as Tr::Y>::NN; 205 | ^^^^^ not a trait 206 207error[E0404]: expected trait, found variant `E::Y` 208 --> $DIR/ufcs-partially-resolved.rs:50:12 209 | 210LL | <u8 as E::Y>::NN; 211 | ^^^^ not a trait 212 213error[E0575]: expected associated type, found associated function `Dr::Z` 214 --> $DIR/ufcs-partially-resolved.rs:52:12 215 | 216LL | type X = u16; 217 | ------------- similarly named associated type `X` defined here 218... 219LL | let _: <u8 as Dr>::Z; 220 | ^^^^^^^^^^^^- 221 | | 222 | help: an associated type with a similar name exists: `X` 223 224error[E0575]: expected method or associated constant, found associated type `Dr::X` 225 --> $DIR/ufcs-partially-resolved.rs:53:5 226 | 227LL | fn Z() {} 228 | ------ similarly named associated function `Z` defined here 229... 230LL | <u8 as Dr>::X; 231 | ^^^^^^^^^^^^- 232 | | 233 | help: an associated function with a similar name exists: `Z` 234 | 235 = note: can't use a type alias as a constructor 236 237error[E0575]: expected associated type, found associated function `Dr::Z` 238 --> $DIR/ufcs-partially-resolved.rs:54:12 239 | 240LL | type X = u16; 241 | ------------- similarly named associated type `X` defined here 242... 243LL | let _: <u8 as Dr>::Z::N; 244 | ^^^^^^^^^^^^-^^^ 245 | | 246 | help: an associated type with a similar name exists: `X` 247 248error[E0223]: ambiguous associated type 249 --> $DIR/ufcs-partially-resolved.rs:36:12 250 | 251LL | let _: <u8 as Tr>::Y::NN; 252 | ^^^^^^^^^^^^^^^^^ 253 | 254help: if there were a trait named `Example` with associated type `NN` implemented for `<u8 as Tr>::Y`, you could use the fully-qualified path 255 | 256LL | let _: <<u8 as Tr>::Y as Example>::NN; 257 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 258 259error[E0599]: no associated item named `NN` found for type `u16` in the current scope 260 --> $DIR/ufcs-partially-resolved.rs:38:20 261 | 262LL | <u8 as Tr>::Y::NN; 263 | ^^ associated item not found in `u16` 264 265error[E0599]: no associated item named `N` found for type `u16` in the current scope 266 --> $DIR/ufcs-partially-resolved.rs:55:20 267 | 268LL | <u8 as Dr>::X::N; 269 | ^ associated item not found in `u16` 270 271error: aborting due to 32 previous errors 272 273Some errors have detailed explanations: E0223, E0404, E0405, E0575, E0576, E0599. 274For more information about an error, try `rustc --explain E0223`.