]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/promote_fn_calls.rs
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / ui / consts / promote_fn_calls.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // aux-build:promotable_const_fn_lib.rs
3
4 extern crate promotable_const_fn_lib;
5
6 use promotable_const_fn_lib::{foo, Foo};
7
8 fn main() {
9     let x: &'static usize = &foo();
10     let x: &'static usize = &Foo::foo();
11 }