about summary refs log tree commit diff
path: root/tests/ui/specialization/dont-drop-upcast-candidate.rs
blob: 98d8cad7c1fbde4258e1dea10c62d74e202f5d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(unsize)]

use std::marker::Unsize;
use std::ops::Deref;

trait Foo: Bar {}
trait Bar {}

impl<T> Bar for T where dyn Foo: Unsize<dyn Bar> {}
impl Bar for () {}
//~^ ERROR conflicting implementations of trait `Bar` for type `()`

fn main() {}