Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -1,14 +0,0 @@
|
|||
// run-pass
|
||||
|
||||
// Regression test for #47096.
|
||||
|
||||
fn foo(s: &[i32]) -> &[i32] {
|
||||
let &[ref xs @ ..] = s;
|
||||
xs
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let x = [1, 2, 3];
|
||||
let y = foo(&x);
|
||||
assert_eq!(x, y);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue