dump bugged fix

This commit is contained in:
MarcusGrass 2024-03-03 17:17:58 +01:00
parent 74cba639e9
commit a2e4ef294c
No known key found for this signature in database
GPG key ID: B3F995FE064E3AA9
4 changed files with 32 additions and 14 deletions

View file

@ -27,10 +27,14 @@ fn std_instead_of_core() {
#[rustfmt::skip]
use std::{
//~^ ERROR: used import from `std` instead of `core`
fmt::Write,
fmt::Write as _,
ptr::read_unaligned,
};
// Multiline mixed imports
use std::{io::Write, fmt::Display};
//~^ ERROR: used import from `std` instead of `core`
// Function calls
let ptr = std::ptr::null::<u32>();
//~^ ERROR: used import from `std` instead of `core`