mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
tests
This commit is contained in:
parent
008b639ef5
commit
37a8493138
3 changed files with 46 additions and 12 deletions
|
@ -6451,3 +6451,22 @@ fn test() {
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn generic_params_disabled_by_cfg() {
|
||||
check(
|
||||
r#"
|
||||
struct S<#[cfg(never)] T>;
|
||||
fn test() {
|
||||
let s$0: S = S;
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
*s*
|
||||
|
||||
```rust
|
||||
let s: S // size = 0, align = 1
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue