Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
25
tests/ui/traits/bound/basic.rs
Normal file
25
tests/ui/traits/bound/basic.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(unconditional_recursion)]
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
trait Foo {
|
||||
}
|
||||
|
||||
fn b(_x: Box<dyn Foo+Send>) {
|
||||
}
|
||||
|
||||
fn c(x: Box<dyn Foo+Sync+Send>) {
|
||||
e(x);
|
||||
}
|
||||
|
||||
fn d(x: Box<dyn Foo+Send>) {
|
||||
e(x);
|
||||
}
|
||||
|
||||
fn e(x: Box<dyn Foo>) {
|
||||
e(x);
|
||||
}
|
||||
|
||||
pub fn main() { }
|
Loading…
Add table
Add a link
Reference in a new issue