summaryrefslogtreecommitdiffstats
path: root/tests/ui/coherence/coherence-fundamental-trait-objects.rs
blob: dd127bf7f4bffa93678967bc15fed74e06233cef (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() {}