ST3 (stable channel, build 3114) syntax highlighting for Rust language incorrectly indicates an error (the red rectangle) for the first square bracket in <[T]>
like so:
Rust syntax highlighting bug: <[T]>
Mitch
#1
0 Likes
kingkeith
#2
possibly fixed with https://github.com/sublimehq/Packages/issues/499, check dev build 3120
0 Likes
Mitch
#3
Running ST3 (dev channel, build 3125) now, and the exact same issue still exists. Here’s a copy-pasteable version:
struct Thingy<T> {
stuff: [T; 10]
}
impl<T> AsRef<[T]> for Thingy<T> {
fn as_ref(&self) -> &[T] {
&self.stuff[..]
}
}
0 Likes