mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Fix highlighting of const patterns
This commit is contained in:
parent
209eb32796
commit
5ebfcb9cb7
5 changed files with 60 additions and 15 deletions
|
@ -50,12 +50,19 @@ fn main() {
|
|||
y;
|
||||
}
|
||||
|
||||
enum E<X> {
|
||||
V(X)
|
||||
enum Option<T> {
|
||||
Some(T),
|
||||
None,
|
||||
}
|
||||
use Option::*;
|
||||
|
||||
impl<X> E<X> {
|
||||
fn new<T>() -> E<T> {}
|
||||
impl<T> Option<T> {
|
||||
fn and<U>(self, other: Option<U>) -> Option<(T, U)> {
|
||||
match other {
|
||||
None => todo!(),
|
||||
Nope => Nope,
|
||||
}
|
||||
}
|
||||
}
|
||||
"#
|
||||
.trim(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue