2018-12-15 15:45:37 -06:00
|
|
|
// 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> {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0117
|
2018-12-15 15:45:37 -06:00
|
|
|
|
|
|
|
fn main() {}
|