Skip to content

Commit

Permalink
Update tests/codegen-units/
Browse files Browse the repository at this point in the history
  • Loading branch information
mu001999 committed Nov 25, 2023
1 parent 6f9eb9f commit 254bb8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#![deny(dead_code)]
#![feature(start)]

#![allow(dead_code)]

trait Trait {
fn foo(&self) -> u32;
fn bar(&self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![deny(dead_code)]
#![feature(start)]

#[allow(dead_code)]
trait SomeTrait {
fn foo(&self) { }
fn bar<T>(&self, x: T) -> T { x }
Expand All @@ -16,6 +17,7 @@ impl SomeTrait for i8 {
//~ MONO_ITEM fn <i8 as SomeTrait>::foo
}

#[allow(dead_code)]
trait SomeGenericTrait<T1> {
fn foo(&self) { }
fn bar<T2>(&self, x: T1, y: T2) {}
Expand Down
1 change: 1 addition & 0 deletions tests/codegen-units/item-collection/unsizing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use std::marker::Unsize;
use std::ops::CoerceUnsized;

#[allow(dead_code)]
trait Trait {
fn foo(&self);
}
Expand Down

0 comments on commit 254bb8a

Please sign in to comment.