Test fixes from the rollup
This commit is contained in:
parent
1ae44c2059
commit
d3e171861f
@ -12,6 +12,6 @@
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unsafe {
|
unsafe {
|
||||||
asm!("nowayisthisavalidinstruction"); //~ ERROR invalid instruction mnemonic
|
asm!("nowayisthisavalidinstruction"); //~ ERROR invalid instruction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ struct Foo<T>{
|
|||||||
type FooInt = Foo<int>;
|
type FooInt = Foo<int>;
|
||||||
|
|
||||||
impl Drop for FooInt {
|
impl Drop for FooInt {
|
||||||
//~^ ERROR cannot implement a destructor on a structure with type parameters
|
//~^ ERROR cannot implement a destructor on a structure with type parameters
|
||||||
fn drop(&mut self){}
|
fn drop(&mut self){}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-test
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
match 22i {
|
match 22i {
|
||||||
0 .. 3 => {} //~ ERROR expected `=>`, found `..`
|
0 .. 3 => {} //~ ERROR expected `=>`, found `..`
|
||||||
|
Loading…
Reference in New Issue
Block a user