Skip to content

Commit

Permalink
[Rust] Fix symbol test file
Browse files Browse the repository at this point in the history
`const` and function definitions are not valid inside structs. `impl`
was probably meant here.
  • Loading branch information
FichteFoll committed Jan 28, 2024
1 parent 6922860 commit a24761f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rust/tests/symbols/syntax_test_symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ mod my_mod { }

struct MyStruct {
// @@@@@@@@ definition
pub field: i8;
}

impl MyStruct {
// @@@@@@@@ definition
const A = 0;
// @ definition

Expand Down

0 comments on commit a24761f

Please sign in to comment.