gccrs: privacy: Uncomment test relying on #1257
gcc/testsuite/ChangeLog: * rust/compile/privacy6.rs: Uncomment commented out functions. * rust/compile/privacy9.rs: Fix unused variables.
This commit is contained in:
parent
ae87a8ee08
commit
9edb0bc9b8
2 changed files with 7 additions and 8 deletions
|
@ -36,7 +36,6 @@ fn foo17(value: (i32, [f64; 5])) {}
|
|||
fn foo18(value: Registers) {}
|
||||
fn foo19(value: &dyn Foo) {}
|
||||
fn foo20(value: &[Adt]) {}
|
||||
// FIXME: Uncomment once #1257 is fixed
|
||||
// fn foo21(value: fn(i32)) {}
|
||||
// fn foo22(value: fn()) {}
|
||||
fn foo21(value: fn(i32)) {}
|
||||
fn foo22(value: fn()) {}
|
||||
fn foo23(value: fn() -> i32) {}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
fn main() {
|
||||
let arr0: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let arr1: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let arr2: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let arr3: [_; 5] = [1, 2, 3, 4, 5];
|
||||
}
|
||||
let _arr0: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let _arr1: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let _arr2: [i32; 5] = [1, 2, 3, 4, 5];
|
||||
let _arr3: [_; 5] = [1, 2, 3, 4, 5];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue