File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
- f4c675c476c18b1a11041193f2f59d695b126bc8
1
+ 98803c182b2ba6ef5dccb6bf501958249295eac0
Original file line number Diff line number Diff line change 1
1
#![ feature( rustc_private) ]
2
- extern crate getopts;
3
2
extern crate miri;
4
3
extern crate rustc;
5
- extern crate rustc_codegen_utils;
6
4
extern crate rustc_driver;
7
- extern crate rustc_errors;
8
5
extern crate rustc_hir;
9
6
extern crate rustc_interface;
10
- extern crate rustc_metadata;
11
7
extern crate rustc_span;
12
8
13
9
use std:: io;
Original file line number Diff line number Diff line change 1
1
fn main ( ) {
2
- fn f ( ) { } //~ ERROR calling a function with more arguments than it expected
2
+ fn f ( ) { }
3
3
4
4
let g = unsafe {
5
5
std:: mem:: transmute :: < fn ( ) , fn ( i32 ) > ( f)
6
6
} ;
7
7
8
- g ( 42 )
8
+ g ( 42 ) //~ ERROR calling a function with more arguments than it expected
9
9
}
Original file line number Diff line number Diff line change 1
1
fn main ( ) {
2
- fn f ( ) -> u32 { 42 } //~ ERROR calling a function with return type u32 passing return place of type ()
2
+ fn f ( ) -> u32 { 42 }
3
3
4
4
let g = unsafe {
5
5
std:: mem:: transmute :: < fn ( ) -> u32 , fn ( ) > ( f)
6
6
} ;
7
7
8
- g ( )
8
+ g ( ) //~ ERROR calling a function with return type u32 passing return place of type ()
9
9
}
You can’t perform that action at this time.
0 commit comments