Files
rust/tests/ui/attributes/z-crate-attr/crate-name.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
210 B
Rust
Raw Normal View History

2025-03-10 23:25:22 -04:00
// 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");
}