about summary refs log tree commit diff
path: root/tests/ui/cast/ptr-to-trait-obj-add-super-auto.rs
blob: ac8108d8ec41b30d4c1ebf6711888729daf3a012 (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass

trait Trait: Send {}
impl Trait for () {}

fn main() {
    // This is OK: `Trait` has `Send` super trait.
    &() as *const dyn Trait as *const (dyn Trait + Send);
}