|
| 1 | +error[E0433]: too many leading `super` keywords |
| 2 | + --> $DIR/restriction_resolution_errors.rs:26:35 |
| 3 | + | |
| 4 | +LL | pub impl(in super::super::super) trait T7 {} |
| 5 | + | ^^^^^ there are too many leading `super` keywords |
| 6 | + |
| 7 | +error[E0433]: too many leading `super` keywords |
| 8 | + --> $DIR/restriction_resolution_errors.rs:57:10 |
| 9 | + | |
| 10 | +LL | pub impl(super) trait T17 {} |
| 11 | + | ^^^^^ there are too many leading `super` keywords |
| 12 | + |
| 13 | +error[E0433]: cannot find module or crate `a` in this scope |
| 14 | + --> $DIR/restriction_resolution_errors.rs:14:21 |
| 15 | + | |
| 16 | +LL | pub impl(in a::b) trait T1 {} |
| 17 | + | ^ use of unresolved module or unlinked crate `a` |
| 18 | + | |
| 19 | +help: there is a crate or module with a similar name |
| 20 | + | |
| 21 | +LL - pub impl(in a::b) trait T1 {} |
| 22 | +LL + pub impl(in c::b) trait T1 {} |
| 23 | + | |
| 24 | +help: consider importing this module |
| 25 | + | |
| 26 | +LL + use a; |
| 27 | + | |
| 28 | + |
| 29 | +error: trait implementation can only be restricted to ancestor modules |
| 30 | + --> $DIR/restriction_resolution_errors.rs:16:21 |
| 31 | + | |
| 32 | +LL | pub impl(in ::std) trait T2 {} |
| 33 | + | ^^^^^ |
| 34 | + |
| 35 | +error: trait implementation can only be restricted to ancestor modules |
| 36 | + --> $DIR/restriction_resolution_errors.rs:18:21 |
| 37 | + | |
| 38 | +LL | pub impl(in self::c) trait T3 {} |
| 39 | + | ^^^^^^^ |
| 40 | + |
| 41 | +error: trait implementation can only be restricted to ancestor modules |
| 42 | + --> $DIR/restriction_resolution_errors.rs:20:21 |
| 43 | + | |
| 44 | +LL | pub impl(in super::d) trait T4 {} |
| 45 | + | ^^^^^^^^ |
| 46 | + |
| 47 | +error[E0433]: cannot find module `c` in the crate root |
| 48 | + --> $DIR/restriction_resolution_errors.rs:22:28 |
| 49 | + | |
| 50 | +LL | pub impl(in crate::c) trait T5 {} |
| 51 | + | ^ not found in the crate root |
| 52 | + |
| 53 | +error[E0577]: expected module, found enum `super::E` |
| 54 | + --> $DIR/restriction_resolution_errors.rs:24:21 |
| 55 | + | |
| 56 | +LL | pub impl(in super::E) trait T6 {} |
| 57 | + | ^^^^^^^^ not a module |
| 58 | + |
| 59 | +error: trait implementation can only be restricted to ancestor modules |
| 60 | + --> $DIR/restriction_resolution_errors.rs:37:21 |
| 61 | + | |
| 62 | +LL | pub impl(in self::f) trait L1 {} |
| 63 | + | ^^^^^^^ |
| 64 | + |
| 65 | +error[E0577]: expected module, found enum `super::G` |
| 66 | + --> $DIR/restriction_resolution_errors.rs:39:21 |
| 67 | + | |
| 68 | +LL | pub impl(in super::G) trait L2 {} |
| 69 | + | ^^^^^^^^ not a module |
| 70 | + |
| 71 | +error: trait implementation can only be restricted to ancestor modules |
| 72 | + --> $DIR/restriction_resolution_errors.rs:41:21 |
| 73 | + | |
| 74 | +LL | pub impl(in super::h) trait L3 {} |
| 75 | + | ^^^^^^^^ |
| 76 | + |
| 77 | +error: trait implementation can only be restricted to ancestor modules |
| 78 | + --> $DIR/restriction_resolution_errors.rs:50:13 |
| 79 | + | |
| 80 | +LL | pub impl(in crate::a) trait T13 {} |
| 81 | + | ^^^^^^^^ |
| 82 | + |
| 83 | +error[E0577]: expected module, found enum `crate::a::E` |
| 84 | + --> $DIR/restriction_resolution_errors.rs:52:13 |
| 85 | + | |
| 86 | +LL | pub mod b { |
| 87 | + | --------- similarly named module `b` defined here |
| 88 | +... |
| 89 | +LL | pub impl(in crate::a::E) trait T14 {} |
| 90 | + | ^^^^^^^^^^^ |
| 91 | + | |
| 92 | +help: a module with a similar name exists |
| 93 | + | |
| 94 | +LL - pub impl(in crate::a::E) trait T14 {} |
| 95 | +LL + pub impl(in crate::a::b) trait T14 {} |
| 96 | + | |
| 97 | + |
| 98 | +error: trait implementation can only be restricted to ancestor modules |
| 99 | + --> $DIR/restriction_resolution_errors.rs:61:13 |
| 100 | + | |
| 101 | +LL | pub impl(in crate::j) trait L4 {} |
| 102 | + | ^^^^^^^^ |
| 103 | + |
| 104 | +error[E0577]: expected module, found enum `crate::I` |
| 105 | + --> $DIR/restriction_resolution_errors.rs:63:13 |
| 106 | + | |
| 107 | +LL | pub mod a { |
| 108 | + | --------- similarly named module `a` defined here |
| 109 | +... |
| 110 | +LL | pub impl(in crate::I) trait L5 {} |
| 111 | + | ^^^^^^^^ |
| 112 | + | |
| 113 | +help: a module with a similar name exists |
| 114 | + | |
| 115 | +LL - pub impl(in crate::I) trait L5 {} |
| 116 | +LL + pub impl(in crate::a) trait L5 {} |
| 117 | + | |
| 118 | + |
| 119 | +error: aborting due to 15 previous errors |
| 120 | + |
| 121 | +Some errors have detailed explanations: E0433, E0577. |
| 122 | +For more information about an error, try `rustc --explain E0433`. |
0 commit comments