|
| 1 | +error: expected a version literal |
| 2 | + --> $DIR/syntax.rs:11:15 |
| 3 | + | |
| 4 | +LL | #[cfg(version(42))] |
| 5 | + | ^^ |
| 6 | + |
| 7 | +error: expected a version literal |
| 8 | + --> $DIR/syntax.rs:15:15 |
| 9 | + | |
| 10 | +LL | #[cfg(version(1.20))] |
| 11 | + | ^^^^ |
| 12 | + |
| 13 | +error: expected a version literal |
| 14 | + --> $DIR/syntax.rs:19:15 |
| 15 | + | |
| 16 | +LL | #[cfg(version(false))] |
| 17 | + | ^^^^^ |
| 18 | + |
| 19 | +error: expected single version literal |
| 20 | + --> $DIR/syntax.rs:23:7 |
| 21 | + | |
| 22 | +LL | #[cfg(version("1.43", "1.44", "1.45"))] |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +warning: unknown version literal format, assuming it refers to a future version |
| 26 | + --> $DIR/syntax.rs:51:15 |
| 27 | + | |
| 28 | +LL | #[cfg(version("foo"))] |
| 29 | + | ^^^^^ |
| 30 | + |
| 31 | +warning: unknown version literal format, assuming it refers to a future version |
| 32 | + --> $DIR/syntax.rs:55:15 |
| 33 | + | |
| 34 | +LL | #[cfg(version("1.20.0-stable"))] |
| 35 | + | ^^^^^^^^^^^^^^^ |
| 36 | + |
| 37 | +warning: unknown version literal format, assuming it refers to a future version |
| 38 | + --> $DIR/syntax.rs:78:15 |
| 39 | + | |
| 40 | +LL | #[cfg(version("1"))] |
| 41 | + | ^^^ |
| 42 | + |
| 43 | +warning: unknown version literal format, assuming it refers to a future version |
| 44 | + --> $DIR/syntax.rs:82:15 |
| 45 | + | |
| 46 | +LL | #[cfg(version("0"))] |
| 47 | + | ^^^ |
| 48 | + |
| 49 | +warning: unknown version literal format, assuming it refers to a future version |
| 50 | + --> $DIR/syntax.rs:86:15 |
| 51 | + | |
| 52 | +LL | #[cfg(version(".7"))] |
| 53 | + | ^^^^ |
| 54 | + |
| 55 | +warning: unknown version literal format, assuming it refers to a future version |
| 56 | + --> $DIR/syntax.rs:95:15 |
| 57 | + | |
| 58 | +LL | #[cfg(version("-1"))] |
| 59 | + | ^^^^ |
| 60 | + |
| 61 | +warning: unknown version literal format, assuming it refers to a future version |
| 62 | + --> $DIR/syntax.rs:101:15 |
| 63 | + | |
| 64 | +LL | #[cfg(version("65536"))] |
| 65 | + | ^^^^^^^ |
| 66 | + |
| 67 | +warning: unknown version literal format, assuming it refers to a future version |
| 68 | + --> $DIR/syntax.rs:105:15 |
| 69 | + | |
| 70 | +LL | #[cfg(version("1.65536.0"))] |
| 71 | + | ^^^^^^^^^^^ |
| 72 | + |
| 73 | +warning: unknown version literal format, assuming it refers to a future version |
| 74 | + --> $DIR/syntax.rs:109:15 |
| 75 | + | |
| 76 | +LL | #[cfg(version("1.0.65536"))] |
| 77 | + | ^^^^^^^^^^^ |
| 78 | + |
| 79 | +warning: unknown version literal format, assuming it refers to a future version |
| 80 | + --> $DIR/syntax.rs:113:15 |
| 81 | + | |
| 82 | +LL | #[cfg(version("65536.0.65536"))] |
| 83 | + | ^^^^^^^^^^^^^^^ |
| 84 | + |
| 85 | +warning: unknown version literal format, assuming it refers to a future version |
| 86 | + --> $DIR/syntax.rs:125:26 |
| 87 | + | |
| 88 | +LL | assert!(cfg!(version("foo"))); |
| 89 | + | ^^^^^ |
| 90 | + |
| 91 | +warning: unknown version literal format, assuming it refers to a future version |
| 92 | + --> $DIR/syntax.rs:127:26 |
| 93 | + | |
| 94 | +LL | assert!(cfg!(version("1.20.0-stable"))); |
| 95 | + | ^^^^^^^^^^^^^^^ |
| 96 | + |
| 97 | +warning: unexpected `cfg` condition name: `version` |
| 98 | + --> $DIR/syntax.rs:30:7 |
| 99 | + | |
| 100 | +LL | #[cfg(version = "1.43")] |
| 101 | + | ^^^^^^^^^^^^^^^^ |
| 102 | + | |
| 103 | + = help: to expect this configuration use `--check-cfg=cfg(version, values("1.43"))` |
| 104 | + = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration |
| 105 | + = note: `#[warn(unexpected_cfgs)]` on by default |
| 106 | +help: there is a similar config predicate: `version("..")` |
| 107 | + | |
| 108 | +LL - #[cfg(version = "1.43")] |
| 109 | +LL + #[cfg(version("1.43"))] |
| 110 | + | |
| 111 | + |
| 112 | +warning: unexpected `cfg` condition name: `version` |
| 113 | + --> $DIR/syntax.rs:130:18 |
| 114 | + | |
| 115 | +LL | assert!(cfg!(version = "1.43")); |
| 116 | + | ^^^^^^^^^^^^^^^^ |
| 117 | + | |
| 118 | + = help: to expect this configuration use `--check-cfg=cfg(version, values("1.43"))` |
| 119 | + = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration |
| 120 | +help: there is a similar config predicate: `version("..")` |
| 121 | + | |
| 122 | +LL - assert!(cfg!(version = "1.43")); |
| 123 | +LL + assert!(cfg!(version("1.43"))); |
| 124 | + | |
| 125 | + |
| 126 | +error[E0425]: cannot find function `key_value_form` in this scope |
| 127 | + --> $DIR/syntax.rs:139:5 |
| 128 | + | |
| 129 | +LL | key_value_form(); |
| 130 | + | ^^^^^^^^^^^^^^ not found in this scope |
| 131 | + |
| 132 | +error[E0425]: cannot find function `not_numbers_or_periods` in this scope |
| 133 | + --> $DIR/syntax.rs:143:5 |
| 134 | + | |
| 135 | +LL | not_numbers_or_periods(); |
| 136 | + | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope |
| 137 | + |
| 138 | +error[E0425]: cannot find function `complex_semver_with_metadata` in this scope |
| 139 | + --> $DIR/syntax.rs:144:5 |
| 140 | + | |
| 141 | +LL | complex_semver_with_metadata(); |
| 142 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope |
| 143 | + |
| 144 | +error[E0425]: cannot find function `invalid_major_only` in this scope |
| 145 | + --> $DIR/syntax.rs:145:5 |
| 146 | + | |
| 147 | +LL | invalid_major_only(); |
| 148 | + | ^^^^^^^^^^^^^^^^^^ not found in this scope |
| 149 | + |
| 150 | +error[E0425]: cannot find function `invalid_major_only_zero` in this scope |
| 151 | + --> $DIR/syntax.rs:146:5 |
| 152 | + | |
| 153 | +LL | invalid_major_only_zero(); |
| 154 | + | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope |
| 155 | + |
| 156 | +error[E0425]: cannot find function `invalid_major_only_negative` in this scope |
| 157 | + --> $DIR/syntax.rs:147:5 |
| 158 | + | |
| 159 | +LL | invalid_major_only_negative(); |
| 160 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope |
| 161 | + |
| 162 | +error[E0425]: cannot find function `exceed_u16_major` in this scope |
| 163 | + --> $DIR/syntax.rs:148:5 |
| 164 | + | |
| 165 | +LL | exceed_u16_major(); |
| 166 | + | ^^^^^^^^^^^^^^^^ not found in this scope |
| 167 | + |
| 168 | +error[E0425]: cannot find function `exceed_u16_minor` in this scope |
| 169 | + --> $DIR/syntax.rs:149:5 |
| 170 | + | |
| 171 | +LL | exceed_u16_minor(); |
| 172 | + | ^^^^^^^^^^^^^^^^ not found in this scope |
| 173 | + |
| 174 | +error[E0425]: cannot find function `exceed_u16_patch` in this scope |
| 175 | + --> $DIR/syntax.rs:150:5 |
| 176 | + | |
| 177 | +LL | exceed_u16_patch(); |
| 178 | + | ^^^^^^^^^^^^^^^^ not found in this scope |
| 179 | + |
| 180 | +error[E0425]: cannot find function `exceed_u16_mixed` in this scope |
| 181 | + --> $DIR/syntax.rs:151:5 |
| 182 | + | |
| 183 | +LL | exceed_u16_mixed(); |
| 184 | + | ^^^^^^^^^^^^^^^^ not found in this scope |
| 185 | + |
| 186 | +error: aborting due to 14 previous errors; 14 warnings emitted |
| 187 | + |
| 188 | +For more information about this error, try `rustc --explain E0425`. |
0 commit comments