]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0582.rs
1 // This test was derived from the wasm and parsell crates. They
2 // stopped compiling when #32330 is fixed.
4 #![allow(dead_code, unused_variables)]
8 pub trait HasOutput
<Ch
, Str
> {
12 #[derive(Clone, PartialEq, Eq, Hash, Ord, PartialOrd, Debug)]
17 fn mk_unexpected_char_err
<'a
>() -> Option
<&'a
i32> {
21 fn foo
<'a
>(data
: &mut Chars
<'a
>) {
22 bar(mk_unexpected_char_err
)
26 // No type can satisfy this requirement, since `'a` does not
27 // appear in any of the input types:
28 where F
: for<'a
> Fn() -> Option
<&'a
i32>
34 // No type can satisfy this requirement, since `'a` does not
35 // appear in any of the input types:
36 where F
: for<'a
> Iterator
<Item
=&'a
i32>