summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/promote_fn_calls.rs
blob: 8995aaacd8549fe833325e4d4ff13b53d6cd208e (plain)
1
2
3
4
5
6
7
8
9
10
11
// build-pass (FIXME(62277): could be check-pass?)
// aux-build:promotable_const_fn_lib.rs

extern crate promotable_const_fn_lib;

use promotable_const_fn_lib::{foo, Foo};

fn main() {
    let x: &'static usize = &foo();
    let x: &'static usize = &Foo::foo();
}