File tree 2 files changed +50
-0
lines changed
2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ![feature(prelude_import)]
2
+ # ![no_std]
3
+ # [prelude_import]
4
+ use std::prelude::v1::*;
5
+ # [macro_use]
6
+ extern crate std as std;
7
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
8
+ // file at the top-level directory of this distribution and at
9
+ // http://rust-lang.org/COPYRIGHT.
10
+ //
11
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
12
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
13
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
14
+ // option. This file may not be copied, modified, or distributed
15
+ // except according to those terms.
16
+
17
+ // pretty-compare-only
18
+ // pretty-mode:expanded
19
+ // pp-exact:cast-lt.pp
20
+
21
+ // # 4264 fixed-length vector types
22
+
23
+ macro_rules! negative(( $ e : expr ) => { $ e < 0 });
24
+
25
+ fn main() { (1 as i32) < 0; }
26
+
Original file line number Diff line number Diff line change
1
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // pretty-compare-only
12
+ // pretty-mode:expanded
13
+ // pp-exact:cast-lt.pp
14
+
15
+ // #4264 fixed-length vector types
16
+
17
+ macro_rules! negative {
18
+ ( $e: expr) => { $e < 0 }
19
+ }
20
+
21
+ fn main ( ) {
22
+ negative ! ( 1 as i32 ) ;
23
+ }
24
+
You can’t perform that action at this time.
0 commit comments