]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-fundamental-trait-objects.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-fundamental-trait-objects.rs
CommitLineData
0731742a
XL
1// Check that trait objects from #[fundamental] traits are not
2// treated as #[fundamental] types - the 2 meanings of #[fundamental]
3// are distinct.
4
5// aux-build:coherence_fundamental_trait_lib.rs
0731742a
XL
6
7extern crate coherence_fundamental_trait_lib;
8
9use coherence_fundamental_trait_lib::{Fundamental, Misc};
10
11pub struct Local;
12impl Misc for dyn Fundamental<Local> {}
60c5eb7d 13//~^ ERROR E0117
0731742a
XL
14
15fn main() {}