]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-overlap-negative-trait.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / coherence / coherence-overlap-negative-trait.rs
CommitLineData
3c0e092e
XL
1// check-pass
2// aux-build:error_lib.rs
3//
4// Check that if we promise to not impl what would overlap it doesn't actually overlap
5
5099ac24 6#![feature(with_negative_coherence)]
3c0e092e
XL
7
8extern crate error_lib as lib;
9use lib::Error;
10
11trait From<T> {}
12
13impl From<&str> for Box<dyn Error> {}
14impl<E> From<E> for Box<dyn Error> where E: Error {}
15
16fn main() {}