]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0401.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0401.rs
1 trait Baz<T> {}
2
3 fn foo<T>(x: T) {
4     fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) { //~ ERROR E0401
5     }
6     fn baz<U,
7            V: Baz<U>,
8            W: Fn()>
9            (y: T) { //~ ERROR E0401
10     }
11     bfnr(x);
12 }
13
14
15 struct A<T> {
16     inner: T,
17 }
18
19 impl<T> Iterator for A<T> {
20     type Item = u8;
21     fn next(&mut self) -> Option<u8> {
22         fn helper(sel: &Self) -> u8 { //~ ERROR E0401
23             unimplemented!();
24         }
25         Some(helper(self))
26     }
27 }
28
29 fn main() {
30 }