fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0015]: cannot call non-const fn `Vec::<u32>::len` in constant functions 2 --> $DIR/issue-94675.rs:11:27 3 | 4LL | self.bar[0] = baz.len(); 5 | ^^^^^ 6 | 7 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants 8 9error[E0015]: cannot call non-const operator in constant functions 10 --> $DIR/issue-94675.rs:11:17 11 | 12LL | self.bar[0] = baz.len(); 13 | ^^^ 14 | 15note: impl defined here, but it is not `const` 16 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL 17 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0015`.