File tree 6 files changed +53
-0
lines changed
6 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ crate_type = "lib" ]
2
+
3
+ pub struct SomeType {
4
+ pub some_member : usize ,
5
+ }
6
+
7
+ pub static SOME_VALUE : SomeType = SomeType {
8
+ some_member : 1 ,
9
+ } ;
Original file line number Diff line number Diff line change
1
+ #![ crate_type = "lib" ]
2
+
3
+ pub fn foo ( ) -> Vec < String > {
4
+ std:: env:: args ( )
5
+ . skip ( 1 )
6
+ . collect ( )
7
+ }
Original file line number Diff line number Diff line change
1
+ // aux-build:issue-29265.rs
2
+ // check-pass
3
+
4
+ extern crate issue_29265 as lib;
5
+
6
+ static _UNUSED: & ' static lib:: SomeType = & lib:: SOME_VALUE ;
7
+
8
+ fn main ( ) {
9
+ vec ! [ 0u8 ; lib:: SOME_VALUE . some_member] ;
10
+ }
Original file line number Diff line number Diff line change
1
+ // ignore-emscripten no asm! support
2
+
3
+ #![ feature( asm) ]
4
+
5
+ fn main ( ) {
6
+ unsafe {
7
+ asm ! ( "" :: "r" ( "" ) ) ;
8
+ //~^ ERROR: invalid value for constraint in inline assembly
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ error[E0669]: invalid value for constraint in inline assembly
2
+ --> $DIR/issue-37433.rs:7:24
3
+ |
4
+ LL | asm!("" :: "r"(""));
5
+ | ^^
6
+
7
+ error: aborting due to previous error
8
+
Original file line number Diff line number Diff line change
1
+ // aux-build:issue-49544.rs
2
+ // check-pass
3
+
4
+ extern crate issue_49544;
5
+ use issue_49544:: foo;
6
+
7
+ fn main ( ) {
8
+ let _ = foo ( ) ;
9
+ }
You can’t perform that action at this time.
0 commit comments