rust/tests/codegen-units/item-collection/unreferenced-const-fn.rs
2023-01-11 09:32:08 +00:00

10 lines
199 B
Rust

// compile-flags:-Zprint-mono-items=lazy
#![deny(dead_code)]
#![crate_type = "rlib"]
//~ MONO_ITEM fn foo @@ unreferenced_const_fn-cgu.0[External]
pub const fn foo(x: u32) -> u32 {
x + 0xf00
}