]> git.lizzy.rs Git - rust.git/blob - src/test/ui/polymorphization/issue-74636.rs
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / polymorphization / issue-74636.rs
1 // compile-flags:-Zpolymorphize=on
2 // build-pass
3
4 use std::any::TypeId;
5
6 pub fn foo<T: 'static>(_: T) -> TypeId {
7     TypeId::of::<T>()
8 }
9
10 fn outer<T: 'static>() {
11     foo(|| ());
12 }
13
14 fn main() {
15     outer::<u8>();
16 }