summaryrefslogtreecommitdiffstats
path: root/tests/ui/sized-owned-pointer.rs
blob: 2abf0a1e0c2c9ef91ce111eee546c9df6ff92825 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![allow(dead_code)]
// Possibly-dynamic size of typaram should be cleared at pointer boundary.


// pretty-expanded FIXME #23616

fn bar<T: Sized>() { }
fn foo<T>() { bar::<Box<T>>() }
pub fn main() { }