File tree Expand file tree Collapse file tree 2 files changed +0
-104
lines changed
crates/ide/src/syntax_highlighting Expand file tree Collapse file tree 2 files changed +0
-104
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -659,43 +659,6 @@ fn foo() {
659
659
) ;
660
660
}
661
661
662
- #[ test]
663
- fn test_highlight_trait_items ( ) {
664
- check_highlighting (
665
- r#"
666
- struct Cat;
667
-
668
- trait Animal {
669
- const SOUND: &'static str;
670
-
671
- fn make_sound(&self) {
672
- println!("{}", Self::SOUND);
673
- }
674
- }
675
-
676
- impl Animal for Cat {
677
- const SOUND: &'static str = "Meow!";
678
- }
679
-
680
- impl Cat {
681
- const SPEED: u32 = 2;
682
-
683
- fn run() {}
684
- }
685
-
686
- fn main() {
687
- let cat = Cat;
688
- cat.make_sound();
689
- let _sound = Cat::SOUND;
690
- let _speed = Cat::SPEED;
691
- Cat::run();
692
- }
693
- "# ,
694
- expect_file ! [ "./test_data/highlight_trait_items.html" ] ,
695
- false ,
696
- ) ;
697
- }
698
-
699
662
/// Highlights the code given by the `ra_fixture` argument, renders the
700
663
/// result as HTML, and compares it with the HTML file given as `snapshot`.
701
664
/// Note that the `snapshot` file is overwritten by the rendered HTML.
You can’t perform that action at this time.
0 commit comments