]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-100199.rs
Rollup merge of #105796 - notriddle:notriddle/rustdoc-search-stop-doing-demerits...
[rust.git] / tests / ui / macros / issue-100199.rs
1 #[issue_100199::struct_with_bound] //~ ERROR cannot find trait `MyTrait` in the crate root
2 struct Foo {}
3 // The above must be on the first line so that it's span points to pos 0.
4 // This used to trigger an ICE because the diagnostic emitter would get
5 // an unexpected dummy span (lo == 0 == hi) while attempting to print a
6 // suggestion.
7
8 // aux-build: issue-100199.rs
9
10 extern crate issue_100199;
11
12 mod traits {
13     pub trait MyTrait {}
14 }
15
16 fn main() {}