summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/encode.rs
blob: 98aaf4a6553f53c454123f8d4fecbcbb2817c0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// build-pass
// compile-flags: --crate-type=lib
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next

#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]

trait Foo {
    fn bar() -> impl Sized;
}