about summary refs log tree commit diff
path: root/tests/ui/coherence/coherence-fundamental-trait-objects.rs
blob: 82afb1b5e84b4615ed044367f487a9f01d80ca28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Check that trait objects from #[fundamental] traits are not
// treated as #[fundamental] types - the 2 meanings of #[fundamental]
// are distinct.

//@ aux-build:coherence_fundamental_trait_lib.rs

extern crate coherence_fundamental_trait_lib;

use coherence_fundamental_trait_lib::{Fundamental, Misc};

pub struct Local;
impl Misc for dyn Fundamental<Local> {}
//~^ ERROR E0117

fn main() {}