Skip to content

Commit

Permalink
Mark foo as explicitly inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed May 4, 2024
1 parent d223ba6 commit 4c779d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ui/mir/auxiliary/static_fnptr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ compile-flags:-O

#[inline]
fn foo() {}

pub static ADDR: fn() = foo;
Expand Down

0 comments on commit 4c779d7

Please sign in to comment.