Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
19
tests/ui/recursion/recursive-requirements.rs
Normal file
19
tests/ui/recursion/recursive-requirements.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
use std::marker::PhantomData;
|
||||
|
||||
struct AssertSync<T: Sync>(PhantomData<T>);
|
||||
|
||||
pub struct Foo {
|
||||
bar: *const Bar,
|
||||
phantom: PhantomData<Bar>,
|
||||
}
|
||||
|
||||
pub struct Bar {
|
||||
foo: *const Foo,
|
||||
phantom: PhantomData<Foo>,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _: AssertSync<Foo> = unimplemented!();
|
||||
//~^ ERROR E0277
|
||||
//~| ERROR E0277
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue