mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Use double reference in debug derive
This commit is contained in:
parent
9b3387454d
commit
7da80d4f67
4 changed files with 91 additions and 8 deletions
|
@ -658,6 +658,26 @@ fn f() {
|
|||
//^ error: expected (), found i32
|
||||
}
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn regression_14768() {
|
||||
check_diagnostics(
|
||||
r#"
|
||||
//- minicore: derive, fmt, slice, coerce_unsized, builtin_impls
|
||||
use core::fmt::Debug;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Foo(u8, u16, [u8]);
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Bar {
|
||||
f1: u8,
|
||||
f2: &[u16],
|
||||
f3: dyn Debug,
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue