Skip to content
TILens What matters today in tech v0.3.2
Theme

Topic - Edition

Rust

3 items on 25 Oct 2026
Rust

"type const" syntax error with gca_const_items feature?

Hello, I am not sure if I'm doing something wrong or this is a bug to be reported, but this is the situation: The following code on its own (as expected) does not compile: trait Trait { const N: usize; fn foo() -> [u8;…

Source: Rust Users Forum ibb-dinosaur