#![feature(rustc_attrs)] #[rustc_builtin_macro] macro_rules! option_env { () => {} } #[lang = "sized"] trait Sized {} pub mod core { pub mod option { pub enum Option { #[lang = "Some"] Some(T), #[lang = "None"] None, } } } use core::option::Option; fn main() { let _: Option<&str> = option_env!("A","B"); // { dg-error "'option_env!' takes 1 argument" "" { target *-*-* } .-1 } }