blob: 63f72545fd9da3e92904e8f7e4b70bf848454932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#![feature(rustc_attrs)]
#[rustc_builtin_macro]
macro_rules! option_env {
() => {}
}
#[lang = "sized"]
trait Sized {}
pub mod core {
pub mod option {
pub enum Option<T> {
#[lang = "Some"]
Some(T),
#[lang = "None"]
None,
}
}
}
use core::option::Option;
fn main() {
let _: Option<&str> = option_env!(42);
// { dg-error "argument must be a string literal" "" { target *-*-* } .-1 }
}
|