fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: associated `static` items are not allowed 2 --> $DIR/assoc-static-semantic-fail.rs:10:5 3 | 4LL | static IA: u8 = 0; 5 | ^^^^^^^^^^^^^^^^^^ 6 7error: associated `static` items are not allowed 8 --> $DIR/assoc-static-semantic-fail.rs:12:5 9 | 10LL | static IB: u8; 11 | ^^^^^^^^^^^^^^ 12 13error: a static item cannot be `default` 14 --> $DIR/assoc-static-semantic-fail.rs:15:5 15 | 16LL | default static IC: u8 = 0; 17 | ^^^^^^^ `default` because of this 18 | 19 = note: only associated `fn`, `const`, and `type` items can be `default` 20 21error: associated `static` items are not allowed 22 --> $DIR/assoc-static-semantic-fail.rs:15:5 23 | 24LL | default static IC: u8 = 0; 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 27error: a static item cannot be `default` 28 --> $DIR/assoc-static-semantic-fail.rs:18:16 29 | 30LL | pub(crate) default static ID: u8; 31 | ^^^^^^^ `default` because of this 32 | 33 = note: only associated `fn`, `const`, and `type` items can be `default` 34 35error: associated `static` items are not allowed 36 --> $DIR/assoc-static-semantic-fail.rs:18:5 37 | 38LL | pub(crate) default static ID: u8; 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 41error: associated `static` items are not allowed 42 --> $DIR/assoc-static-semantic-fail.rs:25:5 43 | 44LL | static TA: u8 = 0; 45 | ^^^^^^^^^^^^^^^^^^ 46 47error: associated `static` items are not allowed 48 --> $DIR/assoc-static-semantic-fail.rs:27:5 49 | 50LL | static TB: u8; 51 | ^^^^^^^^^^^^^^ 52 53error: a static item cannot be `default` 54 --> $DIR/assoc-static-semantic-fail.rs:29:5 55 | 56LL | default static TC: u8 = 0; 57 | ^^^^^^^ `default` because of this 58 | 59 = note: only associated `fn`, `const`, and `type` items can be `default` 60 61error: associated `static` items are not allowed 62 --> $DIR/assoc-static-semantic-fail.rs:29:5 63 | 64LL | default static TC: u8 = 0; 65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 66 67error: a static item cannot be `default` 68 --> $DIR/assoc-static-semantic-fail.rs:32:16 69 | 70LL | pub(crate) default static TD: u8; 71 | ^^^^^^^ `default` because of this 72 | 73 = note: only associated `fn`, `const`, and `type` items can be `default` 74 75error: associated `static` items are not allowed 76 --> $DIR/assoc-static-semantic-fail.rs:32:5 77 | 78LL | pub(crate) default static TD: u8; 79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 80 81error: associated `static` items are not allowed 82 --> $DIR/assoc-static-semantic-fail.rs:39:5 83 | 84LL | static TA: u8 = 0; 85 | ^^^^^^^^^^^^^^^^^^ 86 87error: associated `static` items are not allowed 88 --> $DIR/assoc-static-semantic-fail.rs:41:5 89 | 90LL | static TB: u8; 91 | ^^^^^^^^^^^^^^ 92 93error: a static item cannot be `default` 94 --> $DIR/assoc-static-semantic-fail.rs:44:5 95 | 96LL | default static TC: u8 = 0; 97 | ^^^^^^^ `default` because of this 98 | 99 = note: only associated `fn`, `const`, and `type` items can be `default` 100 101error: associated `static` items are not allowed 102 --> $DIR/assoc-static-semantic-fail.rs:44:5 103 | 104LL | default static TC: u8 = 0; 105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 106 107error: a static item cannot be `default` 108 --> $DIR/assoc-static-semantic-fail.rs:47:9 109 | 110LL | pub default static TD: u8; 111 | ^^^^^^^ `default` because of this 112 | 113 = note: only associated `fn`, `const`, and `type` items can be `default` 114 115error: associated `static` items are not allowed 116 --> $DIR/assoc-static-semantic-fail.rs:47:5 117 | 118LL | pub default static TD: u8; 119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 120 121error: associated constant in `impl` without body 122 --> $DIR/assoc-static-semantic-fail.rs:12:5 123 | 124LL | static IB: u8; 125 | ^^^^^^^^^^^^^- 126 | | 127 | help: provide a definition for the constant: `= <expr>;` 128 129error: associated constant in `impl` without body 130 --> $DIR/assoc-static-semantic-fail.rs:18:5 131 | 132LL | pub(crate) default static ID: u8; 133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 134 | | 135 | help: provide a definition for the constant: `= <expr>;` 136 137error[E0449]: visibility qualifiers are not permitted here 138 --> $DIR/assoc-static-semantic-fail.rs:32:5 139 | 140LL | pub(crate) default static TD: u8; 141 | ^^^^^^^^^^ 142 | 143 = note: trait items always share the visibility of their trait 144 145error: associated constant in `impl` without body 146 --> $DIR/assoc-static-semantic-fail.rs:41:5 147 | 148LL | static TB: u8; 149 | ^^^^^^^^^^^^^- 150 | | 151 | help: provide a definition for the constant: `= <expr>;` 152 153error: associated constant in `impl` without body 154 --> $DIR/assoc-static-semantic-fail.rs:47:5 155 | 156LL | pub default static TD: u8; 157 | ^^^^^^^^^^^^^^^^^^^^^^^^^- 158 | | 159 | help: provide a definition for the constant: `= <expr>;` 160 161error[E0449]: visibility qualifiers are not permitted here 162 --> $DIR/assoc-static-semantic-fail.rs:47:5 163 | 164LL | pub default static TD: u8; 165 | ^^^ 166 | 167 = note: trait items always share the visibility of their trait 168 169warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes 170 --> $DIR/assoc-static-semantic-fail.rs:3:12 171 | 172LL | #![feature(specialization)] 173 | ^^^^^^^^^^^^^^ 174 | 175 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information 176 = help: consider using `min_specialization` instead, which is more stable and complete 177 = note: `#[warn(incomplete_features)]` on by default 178 179error: aborting due to 24 previous errors; 1 warning emitted 180 181For more information about this error, try `rustc --explain E0449`.