|
| 1 | +error: crate root imports need to be explicitly named: `use crate as name;` |
| 2 | + --> $DIR/use-path-segment-kw.rs:27:9 |
| 3 | + | |
| 4 | +LL | use crate; // bad |
| 5 | + | ^^^^^ |
| 6 | + |
| 7 | +error: `crate` in paths can only be used in start position |
| 8 | + --> $DIR/use-path-segment-kw.rs:28:11 |
| 9 | + | |
| 10 | +LL | use ::crate; // bad |
| 11 | + | ^^^^^ |
| 12 | + |
| 13 | +error: `crate` in paths can only be used in start position |
| 14 | + --> $DIR/use-path-segment-kw.rs:29:14 |
| 15 | + | |
| 16 | +LL | use bar::crate; // bad |
| 17 | + | ^^^^^ |
| 18 | + |
| 19 | +error: `crate` in paths can only be used in start position |
| 20 | + --> $DIR/use-path-segment-kw.rs:30:16 |
| 21 | + | |
| 22 | +LL | use crate::crate; // bad |
| 23 | + | ^^^^^ |
| 24 | + |
| 25 | +error: `crate` in paths can only be used in start position |
| 26 | + --> $DIR/use-path-segment-kw.rs:31:16 |
| 27 | + | |
| 28 | +LL | use super::crate; // bad |
| 29 | + | ^^^^^ |
| 30 | + |
| 31 | +error: `crate` in paths can only be used in start position |
| 32 | + --> $DIR/use-path-segment-kw.rs:32:15 |
| 33 | + | |
| 34 | +LL | use self::crate; // bad |
| 35 | + | ^^^^^ |
| 36 | + |
| 37 | +error: `crate` in paths can only be used in start position |
| 38 | + --> $DIR/use-path-segment-kw.rs:33:20 |
| 39 | + | |
| 40 | +LL | use ::crate as _crate2; // bad |
| 41 | + | ^^^^^^^ |
| 42 | + |
| 43 | +error: `crate` in paths can only be used in start position |
| 44 | + --> $DIR/use-path-segment-kw.rs:34:23 |
| 45 | + | |
| 46 | +LL | use bar::crate as _crate3; // bad |
| 47 | + | ^^^^^^^ |
| 48 | + |
| 49 | +error: `crate` in paths can only be used in start position |
| 50 | + --> $DIR/use-path-segment-kw.rs:35:25 |
| 51 | + | |
| 52 | +LL | use crate::crate as _crate4; // bad |
| 53 | + | ^^^^^^^ |
| 54 | + |
| 55 | +error: `crate` in paths can only be used in start position |
| 56 | + --> $DIR/use-path-segment-kw.rs:36:25 |
| 57 | + | |
| 58 | +LL | use super::crate as _crate5; // bad |
| 59 | + | ^^^^^^^ |
| 60 | + |
| 61 | +error: `crate` in paths can only be used in start position |
| 62 | + --> $DIR/use-path-segment-kw.rs:37:24 |
| 63 | + | |
| 64 | +LL | use self::crate as _crate6; // bad |
| 65 | + | ^^^^^^^ |
| 66 | + |
| 67 | +error: imports need to be explicitly named: `use super as name;` |
| 68 | + --> $DIR/use-path-segment-kw.rs:40:9 |
| 69 | + | |
| 70 | +LL | use super; // bad |
| 71 | + | ^^^^^ |
| 72 | + |
| 73 | +error: `super` in paths can only be used in start position |
| 74 | + --> $DIR/use-path-segment-kw.rs:41:11 |
| 75 | + | |
| 76 | +LL | use ::super; // bad |
| 77 | + | ^^^^^ |
| 78 | + |
| 79 | +error: `super` in paths can only be used in start position |
| 80 | + --> $DIR/use-path-segment-kw.rs:42:14 |
| 81 | + | |
| 82 | +LL | use bar::super; // bad |
| 83 | + | ^^^^^ |
| 84 | + |
| 85 | +error: `super` in paths can only be used in start position |
| 86 | + --> $DIR/use-path-segment-kw.rs:43:16 |
| 87 | + | |
| 88 | +LL | use crate::super; // bad |
| 89 | + | ^^^^^ |
| 90 | + |
| 91 | +error: `super` in paths can only be used in start position |
| 92 | + --> $DIR/use-path-segment-kw.rs:44:16 |
| 93 | + | |
| 94 | +LL | use super::super; // bad |
| 95 | + | ^^^^^ |
| 96 | + |
| 97 | +error: `super` in paths can only be used in start position |
| 98 | + --> $DIR/use-path-segment-kw.rs:45:15 |
| 99 | + | |
| 100 | +LL | use self::super; // bad |
| 101 | + | ^^^^^ |
| 102 | + |
| 103 | +error: `super` in paths can only be used in start position |
| 104 | + --> $DIR/use-path-segment-kw.rs:46:20 |
| 105 | + | |
| 106 | +LL | use ::super as _super2; // bad |
| 107 | + | ^^^^^^^ |
| 108 | + |
| 109 | +error: `super` in paths can only be used in start position |
| 110 | + --> $DIR/use-path-segment-kw.rs:47:23 |
| 111 | + | |
| 112 | +LL | use bar::super as _super3; // bad |
| 113 | + | ^^^^^^^ |
| 114 | + |
| 115 | +error: `super` in paths can only be used in start position |
| 116 | + --> $DIR/use-path-segment-kw.rs:48:25 |
| 117 | + | |
| 118 | +LL | use crate::super as _super4; // bad |
| 119 | + | ^^^^^^^ |
| 120 | + |
| 121 | +error: `super` in paths can only be used in start position |
| 122 | + --> $DIR/use-path-segment-kw.rs:49:25 |
| 123 | + | |
| 124 | +LL | use super::super as _super5; // bad |
| 125 | + | ^^^^^^^ |
| 126 | + |
| 127 | +error: `super` in paths can only be used in start position |
| 128 | + --> $DIR/use-path-segment-kw.rs:50:23 |
| 129 | + | |
| 130 | +LL | use bar::super as _super6; // bad |
| 131 | + | ^^^^^^^ |
| 132 | + |
| 133 | +error: aborting due to 22 previous errors |
| 134 | + |
0 commit comments