2017-12-17 01:53:11 +03:00
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:11:10
|
|
|
|
|
|
|
|
|
11 | type A = [u8; 4]::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `<[u8; 4]>::AssocTy`
|
|
|
|
|
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:15:10
|
|
|
|
|
|
|
|
|
15 | type B = [u8]::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `<[u8]>::AssocTy`
|
|
|
|
|
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:19:10
|
|
|
|
|
|
|
|
|
19 | type C = (u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
|
|
|
|
|
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:23:10
|
|
|
|
|
|
|
|
|
23 | type D = (u8, u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocTy`
|
|
|
|
|
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:27:10
|
|
|
|
|
|
|
|
|
27 | type E = _::AssocTy;
|
|
|
|
| ^^^^^^^^^^ help: try: `<_>::AssocTy`
|
|
|
|
|
2017-12-18 23:42:58 +03:00
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:31:19
|
|
|
|
|
|
|
|
|
31 | type F = &'static (u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
|
|
|
|
|
|
|
|
error: missing angle brackets in associated item path
|
|
|
|
--> $DIR/bad-assoc-ty.rs:37:10
|
|
|
|
|
|
|
|
|
37 | type G = 'static + (Send)::AssocTy;
|
2017-12-18 23:59:31 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<'static + Send>::AssocTy`
|
2017-12-18 23:42:58 +03:00
|
|
|
|
2017-12-17 01:53:11 +03:00
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:11:10
|
|
|
|
|
|
|
|
|
11 | type A = [u8; 4]::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<[u8; <unevaluated[]>] as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:15:10
|
|
|
|
|
|
|
|
|
15 | type B = [u8]::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<[u8] as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:19:10
|
|
|
|
|
|
|
|
|
19 | type C = (u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<u8 as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:23:10
|
|
|
|
|
|
|
|
|
23 | type D = (u8, u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<(u8, u8) as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
|
|
|
|
--> $DIR/bad-assoc-ty.rs:27:10
|
|
|
|
|
|
|
|
|
27 | type E = _::AssocTy;
|
|
|
|
| ^ not allowed in type signatures
|
|
|
|
|
2017-12-18 23:42:58 +03:00
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:31:19
|
|
|
|
|
|
|
|
|
31 | type F = &'static (u8)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<u8 as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
|
|
|
--> $DIR/bad-assoc-ty.rs:37:10
|
|
|
|
|
|
|
|
|
37 | type G = 'static + (Send)::AssocTy;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
|
|
|
|
|
|
|
|
|
= note: specify the type using the syntax `<std::marker::Send + 'static as Trait>::AssocTy`
|
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
2017-12-18 23:59:31 +03:00
|
|
|
--> $DIR/bad-assoc-ty.rs:43:10
|
2017-12-18 23:42:58 +03:00
|
|
|
|
|
2017-12-18 23:59:31 +03:00
|
|
|
43 | type H = Fn(u8) -> (u8)::Output;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
|
2017-12-18 23:42:58 +03:00
|
|
|
|
|
2017-12-18 23:59:31 +03:00
|
|
|
= note: specify the type using the syntax `<std::ops::Fn(u8) -> u8 + 'static as Trait>::Output`
|
2017-12-18 23:42:58 +03:00
|
|
|
|
2017-12-18 23:59:31 +03:00
|
|
|
error: aborting due to 15 previous errors
|
2017-12-17 01:53:11 +03:00
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
You've got a few errors: E0121, E0223
|
|
|
|
If you want more information on an error, try using "rustc --explain E0121"
|