]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/promote_fn_calls.rs
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / test / 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 }