summary refs log tree commit diff
path: root/src/test/ui/coherence/coherence-fundamental-trait-objects.rs
blob: 0c7d54425ddc43351da038737efe058ba1c8562c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

extern crate coherence_fundamental_trait_lib;

use coherence_fundamental_trait_lib::{Fundamental, Misc};

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

fn main() {}