diff options
author | Lukas Wirth <[email protected]> | 2021-01-01 09:07:01 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-01-01 13:43:16 +0000 |
commit | 18bf2e5af5875f036b321bcf9e07e9904c02510e (patch) | |
tree | 1a82bc1dddc9a0d77515f7e7036c4b5583d359ba /crates/ide/src/syntax_highlighting/tests.rs | |
parent | 0acdb730769cfb040ffc5e2c87f83b19fd3ce291 (diff) |
Add ConstParams to the ide layer
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index e0df0d2b5..30b5b648e 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -91,6 +91,10 @@ fn never() -> ! { | |||
91 | loop {} | 91 | loop {} |
92 | } | 92 | } |
93 | 93 | ||
94 | fn const_param<const FOO: usize>() -> usize { | ||
95 | FOO | ||
96 | } | ||
97 | |||
94 | use ops::Fn; | 98 | use ops::Fn; |
95 | fn baz<F: Fn() -> ()>(f: F) { | 99 | fn baz<F: Fn() -> ()>(f: F) { |
96 | f() | 100 | f() |