]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/wf-in-fn-ret.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / wf / wf-in-fn-ret.rs
1 // Check that we enforce WF conditions also for return types in fn items.
2
3 #![feature(rustc_attrs)]
4 #![allow(dead_code)]
5
6 struct MustBeCopy<T:Copy> {
7     t: T
8 }
9
10 fn bar<T>() -> MustBeCopy<T> //~ ERROR E0277
11 {
12 }
13
14 fn main() { }