]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/wf-in-fn-ret.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[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() { }