fix unused warnings in tests
This commit is contained in:
parent
bc65281438
commit
d276d952ff
@ -1,4 +1,4 @@
|
||||
use std::alloc::{alloc, dealloc, realloc, Layout};
|
||||
use std::alloc::{alloc, dealloc, Layout};
|
||||
|
||||
// error-pattern: allocation has size 1 and alignment 1, but gave size 1 and alignment 2
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use std::alloc::{alloc, dealloc, realloc, Layout};
|
||||
use std::alloc::{alloc, dealloc, Layout};
|
||||
|
||||
// error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use std::alloc::{alloc, dealloc, realloc, Layout};
|
||||
use std::alloc::{alloc, dealloc, Layout};
|
||||
|
||||
// error-pattern: dereferenced after this allocation got freed
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use std::alloc::{alloc, dealloc, realloc, Layout};
|
||||
use std::alloc::{alloc, realloc, Layout};
|
||||
|
||||
// error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use std::alloc::{alloc, dealloc, realloc, Layout};
|
||||
use std::alloc::{alloc, realloc, Layout};
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
|
Loading…
x
Reference in New Issue
Block a user