]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1598-generic-associated-types/pointer_family.stderr
Rollup merge of #53413 - eddyb:featured-in-the-latest-edition, r=varkor
[rust.git] / src / test / ui / rfc1598-generic-associated-types / pointer_family.stderr
1 warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
2   --> $DIR/pointer_family.rs:11:12
3    |
4 LL | #![feature(generic_associated_types)]
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0109]: type parameters are not allowed on this type
8   --> $DIR/pointer_family.rs:47:21
9    |
10 LL |     bar: P::Pointer<String>,
11    |                     ^^^^^^ type parameter not allowed
12
13 error[E0109]: type parameters are not allowed on this type
14   --> $DIR/pointer_family.rs:22:42
15    |
16 LL |     fn new<T>(value: T) -> Self::Pointer<T>;
17    |                                          ^ type parameter not allowed
18
19 error[E0109]: type parameters are not allowed on this type
20   --> $DIR/pointer_family.rs:30:42
21    |
22 LL |     fn new<T>(value: T) -> Self::Pointer<T> {
23    |                                          ^ type parameter not allowed
24
25 error[E0109]: type parameters are not allowed on this type
26   --> $DIR/pointer_family.rs:40:42
27    |
28 LL |     fn new<T>(value: T) -> Self::Pointer<T> {
29    |                                          ^ type parameter not allowed
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0109`.