You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub trait Number {
fn value(&self) -> i32;
}
pub struct IterHolder<A> where A: Number {
num: A
}
impl<A> Number for IterHolder<A> where A: Number {
fn value(&self) -> i32 {
self.num.value()
}
}
I would expect both where keywords to be highlighted.
Actual behavior
The keyword where is highlighted when implementing the Number trait, but not in the struct definition (With higlighted I mean having the color of other keywords like for and struct).
Steps to reproduce
Input the code in a file with Rust Enhanced syntax.
The text was updated successfully, but these errors were encountered:
alvitawa
changed the title
Keyword 'where' not highlighted when
Keyword 'where' not highlighted when defining struct
Jul 6, 2017
Uh oh!
There was an error while loading. Please reload this page.
Sublime Text Version
Sublime Text 3 (Build 3126)
Rust Enhanced Version
1.3.2
Operating system
Ubuntu 16.04 LTS
Expected behavior
When writing the following code:
I would expect both
where
keywords to be highlighted.Actual behavior
The keyword
where
is highlighted when implementing the Number trait, but not in the struct definition (With higlighted I mean having the color of other keywords likefor
andstruct
).Steps to reproduce
The text was updated successfully, but these errors were encountered: