mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
more complicated const test
This commit is contained in:
parent
d5de7c21b2
commit
aef8882254
@ -514,6 +514,28 @@ fn hover_const_static() {
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
const foo$0: u32 = {
|
||||
let x = foo();
|
||||
x + 100
|
||||
};"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
const foo: u32 = {
|
||||
let x = foo();
|
||||
x + 100
|
||||
}
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
|
||||
check(
|
||||
r#"static foo$0: u32 = 456;"#,
|
||||
expect![[r#"
|
||||
|
Loading…
Reference in New Issue
Block a user