mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Lower const params with a bad id
This commit is contained in:
parent
68bdf609f3
commit
a481e004b0
38 changed files with 475 additions and 184 deletions
|
@ -2051,6 +2051,17 @@ fn extern_weak_statics() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn from_ne_bytes() {
|
||||
check_number(
|
||||
r#"
|
||||
//- minicore: int_impl
|
||||
const GOAL: u32 = u32::from_ne_bytes([44, 1, 0, 0]);
|
||||
"#,
|
||||
300,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn enums() {
|
||||
check_number(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue