]> git.lizzy.rs Git - rust.git/blob - tests/ui/sized-borrowed-pointer.rs
Rollup merge of #106734 - albertlarsan68:deny-src-tests-in-tidy, r=Nilstrieb
[rust.git] / tests / ui / sized-borrowed-pointer.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Possibly-dynamic size of typaram should be cleared at pointer boundary.
5
6 // pretty-expanded FIXME #23616
7
8 fn bar<T: Sized>() { }
9 fn foo<T>() { bar::<&T>() }
10 pub fn main() { }