aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/err/0046_ambiguous_trait_object.rs
blob: 3a73d81bb5dc6afcfe9470eca8e18e6f04a7b20d (plain)
1
2
3
4
5
6
type Foo<'a> = &'a dyn Send + Sync;
type Foo = *const dyn Send + Sync;
type Foo = fn() -> dyn Send + 'static;
fn main() {
    let b = (&a) as &dyn Add<Other, Output = Addable> + Other;
}