about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/rpitit-duplicate-associated-fn-with-nested.stderr
blob: 8356f94f2aa7a94f1d664c0b72132c78100be0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
error[E0428]: the name `foo` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:9:5
   |
LL |     fn foo() -> impl T<Target = impl T<Target = impl Sized>>;
   |     --------------------------------------------------------- previous definition of the value `foo` here
LL |     fn foo() -> impl Sized;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ `foo` redefined here
   |
   = note: `foo` must be defined only once in the value namespace of this trait

error[E0428]: the name `foo` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:15:5
   |
LL |     fn foo() -> impl T<Target = impl T<Target = impl Sized>>;
   |     --------------------------------------------------------- previous definition of the value `foo` here
LL |     fn foo() -> impl T<Target = impl T<Target = impl Sized>>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` redefined here
   |
   = note: `foo` must be defined only once in the value namespace of this trait

error[E0428]: the name `foo` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:25:5
   |
LL |     fn foo() -> S<impl T<Target = S<S<impl Sized>>>>;
   |     ------------------------------------------------- previous definition of the value `foo` here
LL |     fn foo() -> S<impl T<Target = S<S<impl Sized>>>>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` redefined here
   |
   = note: `foo` must be defined only once in the value namespace of this trait

error[E0428]: the name `foo` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:39:5
   |
LL | /     fn foo() -> S1<
LL | |         impl T<Target = impl T<Target = impl Sized>>,
LL | |         impl T<Target = impl T<Target = S<impl Sized>>>
LL | |         >;
   | |__________- previous definition of the value `foo` here
LL | /     fn foo() -> S1<
LL | |         impl T<Target = impl T<Target = impl Sized>>,
LL | |         impl T<Target = impl T<Target = S<impl Sized>>>
LL | |         >;
   | |__________^ `foo` redefined here
   |
   = note: `foo` must be defined only once in the value namespace of this trait

error[E0428]: the name `a` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:53:5
   |
LL |     fn a() -> impl T0<(), Target = impl T1<()>>;
   |     -------------------------------------------- previous definition of the value `a` here
LL |     fn a() -> impl T0<(), Target = impl T1<()>>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `a` redefined here
   |
   = note: `a` must be defined only once in the value namespace of this trait

error[E0428]: the name `a` is defined multiple times
  --> $DIR/rpitit-duplicate-associated-fn-with-nested.rs:55:5
   |
LL |     fn a() -> impl T0<(), Target = impl T1<()>>;
   |     -------------------------------------------- previous definition of the value `a` here
...
LL |     fn a() -> impl T0<(), Target = impl T1<()>>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `a` redefined here
   |
   = note: `a` must be defined only once in the value namespace of this trait

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0428`.