]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-78720.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / closures / issue-78720.rs
1 fn server() -> impl {
2 //~^ ERROR at least one trait must be specified
3     ().map2(|| "")
4 }
5
6 trait FilterBase2 {
7     fn map2<F>(self, f: F) -> Map2<F> {}
8     //~^ ERROR mismatched types
9     //~^^ ERROR the size for values of type `Self` cannot be known at compilation time
10 }
11
12 struct Map2<Segment2> {
13     _func: F,
14     //~^ ERROR cannot find type `F` in this scope
15 }
16
17 impl<F> FilterBase2 for F {}
18
19 fn main() {}