Lower string literals with real val, not default

This commit is contained in:
Tianyi Song 2022-03-01 15:44:53 +08:00
parent 9d473a0b9f
commit 89a19f57f8
2 changed files with 25 additions and 1 deletions

View file

@ -3487,6 +3487,27 @@ const FOO$0: usize = 1 << 100;
---
This is a doc
"#]],
);
check(
r#"
/// This is a doc
const FOO$0: &str = "bar";
"#,
expect![[r#"
*FOO*
```rust
test
```
```rust
const FOO: &str = "bar"
```
---
This is a doc
"#]],
);