fix unused warnings in tests

This commit is contained in:
Ralf Jung 2020-04-10 10:27:59 +02:00
parent bc65281438
commit d276d952ff
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
use std::alloc::{alloc, dealloc, realloc, Layout};
use std::alloc::{alloc, realloc, Layout};
fn main() {
unsafe {