]> git.lizzy.rs Git - rust.git/blob - tests/pretty/cast-lt.pp
Add ~const bounds trait bounds when using derive_const
[rust.git] / tests / pretty / cast-lt.pp
1 #![feature(prelude_import)]
2 #![no_std]
3 #[prelude_import]
4 use ::std::prelude::rust_2015::*;
5 #[macro_use]
6 extern crate std;
7 // pretty-compare-only
8 // pretty-mode:expanded
9 // pp-exact:cast-lt.pp
10
11 macro_rules! negative { ($e : expr) => { $e < 0 } }
12
13 fn main() { (1 as i32) < 0; }