Skip to content

Commit

Permalink
Update lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 21, 2020
1 parent 1ff6cba commit aebe2dd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@ pub mod box_pointers {
pub p: Box<isize>,
pub u: Box<isize>,
}

#[allow(box_pointers)] // for the type itself
#[pin_project(project_replace)]
#[derive(Debug)]
pub struct TupleStruct(#[pin] pub Box<isize>, pub Box<isize>);

#[allow(box_pointers)] // for the type itself
#[pin_project(
project = EnumProj,
project_ref = EnumProjRef,
project_replace = EnumProjOwn,
)]
#[derive(Debug)]
pub enum Enum {
Struct {
#[pin]
p: Box<isize>,
u: Box<isize>,
},
Tuple(#[pin] Box<isize>, Box<isize>),
Unit,
}
}

pub mod explicit_outlives_requirements {
Expand Down

0 comments on commit aebe2dd

Please sign in to comment.