Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 264 Bytes
// build-pass (FIXME(62277): could be check-pass?)
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();
You can’t perform that action at this time.