Add suggestions for std_instead_of_core

Fixes #11446
This commit is contained in:
tom-anders 2023-09-03 14:34:40 +02:00
parent b9906aca5a
commit e0014afa2d
4 changed files with 101 additions and 59 deletions

View file

@ -17,7 +17,6 @@ fn std_instead_of_core() {
// Multiple imports
use std::fmt::{Debug, Result};
//~^ ERROR: used import from `std` instead of `core`
//~| ERROR: used import from `std` instead of `core`
// Function calls
let ptr = std::ptr::null::<u32>();