Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
attributes
/
z-crate-attr
/
crate-name.rs
blob: d49830390e2ece36f6b6e01c75b7d5f6b614ea33 [
file
] [
log
] [
blame
]
// Ensure that `crate_name` and `crate_type` can be set through `-Z crate-attr`.
//@ check-pass
//@ compile-flags: -Zcrate-attr=crate_name="override"
fn
main
()
{
assert_eq
!(
module_path
!(),
"r#override"
);
}