fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: missing angle brackets in associated item path 2 --> $DIR/bad-assoc-ty.rs:1:10 3 | 4LL | type A = [u8; 4]::AssocTy; 5 | ^^^^^^^^^^^^^^^^ help: try: `<[u8; 4]>::AssocTy` 6 7error: missing angle brackets in associated item path 8 --> $DIR/bad-assoc-ty.rs:5:10 9 | 10LL | type B = [u8]::AssocTy; 11 | ^^^^^^^^^^^^^ help: try: `<[u8]>::AssocTy` 12 13error: missing angle brackets in associated item path 14 --> $DIR/bad-assoc-ty.rs:9:10 15 | 16LL | type C = (u8)::AssocTy; 17 | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy` 18 19error: missing angle brackets in associated item path 20 --> $DIR/bad-assoc-ty.rs:13:10 21 | 22LL | type D = (u8, u8)::AssocTy; 23 | ^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocTy` 24 25error: missing angle brackets in associated item path 26 --> $DIR/bad-assoc-ty.rs:17:10 27 | 28LL | type E = _::AssocTy; 29 | ^^^^^^^^^^ help: try: `<_>::AssocTy` 30 31error: missing angle brackets in associated item path 32 --> $DIR/bad-assoc-ty.rs:21:19 33 | 34LL | type F = &'static (u8)::AssocTy; 35 | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy` 36 37error: missing angle brackets in associated item path 38 --> $DIR/bad-assoc-ty.rs:27:10 39 | 40LL | type G = dyn 'static + (Send)::AssocTy; 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<dyn 'static + (Send)>::AssocTy` 42 43error: missing angle brackets in associated item path 44 --> $DIR/bad-assoc-ty.rs:44:10 45 | 46LL | type I = ty!()::AssocTy; 47 | ^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocTy` 48 49error: missing angle brackets in associated item path 50 --> $DIR/bad-assoc-ty.rs:37:19 51 | 52LL | ($ty: ty) => ($ty::AssocTy); 53 | ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy` 54... 55LL | type J = ty!(u8); 56 | ------- in this macro invocation 57 | 58 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 59 60error[E0658]: unions with non-`Copy` fields are unstable 61 --> $DIR/bad-assoc-ty.rs:69:1 62 | 63LL | / union O<F> where F: Fn() -> _ { 64LL | | 65LL | | 66LL | | foo: F, 67LL | | } 68 | |_^ 69 | 70 = note: see issue #55149 <https://github.com/rust-lang/rust/issues/55149> for more information 71 = help: add `#![feature(untagged_unions)]` to the crate attributes to enable 72 73error[E0223]: ambiguous associated type 74 --> $DIR/bad-assoc-ty.rs:1:10 75 | 76LL | type A = [u8; 4]::AssocTy; 77 | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8; 4] as Trait>::AssocTy` 78 79error[E0223]: ambiguous associated type 80 --> $DIR/bad-assoc-ty.rs:5:10 81 | 82LL | type B = [u8]::AssocTy; 83 | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8] as Trait>::AssocTy` 84 85error[E0223]: ambiguous associated type 86 --> $DIR/bad-assoc-ty.rs:9:10 87 | 88LL | type C = (u8)::AssocTy; 89 | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy` 90 91error[E0223]: ambiguous associated type 92 --> $DIR/bad-assoc-ty.rs:13:10 93 | 94LL | type D = (u8, u8)::AssocTy; 95 | ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(u8, u8) as Trait>::AssocTy` 96 97error[E0121]: the type placeholder `_` is not allowed within types on item signatures 98 --> $DIR/bad-assoc-ty.rs:17:10 99 | 100LL | type E = _::AssocTy; 101 | ^ not allowed in type signatures 102 103error[E0223]: ambiguous associated type 104 --> $DIR/bad-assoc-ty.rs:21:19 105 | 106LL | type F = &'static (u8)::AssocTy; 107 | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy` 108 109error[E0223]: ambiguous associated type 110 --> $DIR/bad-assoc-ty.rs:27:10 111 | 112LL | type G = dyn 'static + (Send)::AssocTy; 113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::marker::Send + 'static) as Trait>::AssocTy` 114 115error[E0223]: ambiguous associated type 116 --> $DIR/bad-assoc-ty.rs:33:10 117 | 118LL | type H = Fn(u8) -> (u8)::Output; 119 | ^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output` 120 121error[E0223]: ambiguous associated type 122 --> $DIR/bad-assoc-ty.rs:37:19 123 | 124LL | ($ty: ty) => ($ty::AssocTy); 125 | ^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy` 126... 127LL | type J = ty!(u8); 128 | ------- in this macro invocation 129 | 130 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 131 132error[E0223]: ambiguous associated type 133 --> $DIR/bad-assoc-ty.rs:44:10 134 | 135LL | type I = ty!()::AssocTy; 136 | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy` 137 138error[E0121]: the type placeholder `_` is not allowed within types on item signatures 139 --> $DIR/bad-assoc-ty.rs:49:13 140 | 141LL | fn foo<X: K<_, _>>(x: X) {} 142 | ^ ^ not allowed in type signatures 143 | | 144 | not allowed in type signatures 145 | 146help: use type parameters instead 147 | 148LL | fn foo<X: K<T, T>, T>(x: X) {} 149 | ^ ^ ^^^ 150 151error[E0121]: the type placeholder `_` is not allowed within types on item signatures 152 --> $DIR/bad-assoc-ty.rs:52:34 153 | 154LL | fn bar<F>(_: F) where F: Fn() -> _ {} 155 | ^ not allowed in type signatures 156 | 157help: use type parameters instead 158 | 159LL | fn bar<F, T>(_: F) where F: Fn() -> T {} 160 | ^^^ ^ 161 162error[E0121]: the type placeholder `_` is not allowed within types on item signatures 163 --> $DIR/bad-assoc-ty.rs:55:19 164 | 165LL | fn baz<F: Fn() -> _>(_: F) {} 166 | ^ not allowed in type signatures 167 | 168help: use type parameters instead 169 | 170LL | fn baz<F: Fn() -> T, T>(_: F) {} 171 | ^^^^ 172 173error[E0121]: the type placeholder `_` is not allowed within types on item signatures 174 --> $DIR/bad-assoc-ty.rs:58:33 175 | 176LL | struct L<F>(F) where F: Fn() -> _; 177 | ^ not allowed in type signatures 178 | 179help: use type parameters instead 180 | 181LL | struct L<F, T>(F) where F: Fn() -> T; 182 | ^^^ ^ 183 184error[E0121]: the type placeholder `_` is not allowed within types on item signatures 185 --> $DIR/bad-assoc-ty.rs:60:30 186 | 187LL | struct M<F> where F: Fn() -> _ { 188 | ^ not allowed in type signatures 189 | 190help: use type parameters instead 191 | 192LL | struct M<F, T> where F: Fn() -> T { 193 | ^^^ ^ 194 195error[E0121]: the type placeholder `_` is not allowed within types on item signatures 196 --> $DIR/bad-assoc-ty.rs:64:28 197 | 198LL | enum N<F> where F: Fn() -> _ { 199 | ^ not allowed in type signatures 200 | 201help: use type parameters instead 202 | 203LL | enum N<F, T> where F: Fn() -> T { 204 | ^^^ ^ 205 206error[E0121]: the type placeholder `_` is not allowed within types on item signatures 207 --> $DIR/bad-assoc-ty.rs:69:29 208 | 209LL | union O<F> where F: Fn() -> _ { 210 | ^ not allowed in type signatures 211 | 212help: use type parameters instead 213 | 214LL | union O<F, T> where F: Fn() -> T { 215 | ^^^ ^ 216 217error[E0121]: the type placeholder `_` is not allowed within types on item signatures 218 --> $DIR/bad-assoc-ty.rs:75:29 219 | 220LL | trait P<F> where F: Fn() -> _ { 221 | ^ not allowed in type signatures 222 | 223help: use type parameters instead 224 | 225LL | trait P<F, T> where F: Fn() -> T { 226 | ^^^ ^ 227 228error[E0121]: the type placeholder `_` is not allowed within types on item signatures 229 --> $DIR/bad-assoc-ty.rs:80:38 230 | 231LL | fn foo<F>(_: F) where F: Fn() -> _ {} 232 | ^ not allowed in type signatures 233 | 234help: use type parameters instead 235 | 236LL | fn foo<F, T>(_: F) where F: Fn() -> T {} 237 | ^^^ ^ 238 239error: aborting due to 29 previous errors 240 241Some errors have detailed explanations: E0121, E0223, E0658. 242For more information about an error, try `rustc --explain E0121`.