diff options
| author | Gary Guo <gary@garyguo.net> | 2022-11-04 03:08:28 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-11-04 03:08:28 +0000 |
| commit | 1013ee8df512015855937615500690664399545f (patch) | |
| tree | 158479ba876e605052082ab20d9bf18f00f52232 /src | |
| parent | 215e3cd218b83b8a3152d84d92f17109253c25e1 (diff) | |
| download | rust-1013ee8df512015855937615500690664399545f.tar.gz rust-1013ee8df512015855937615500690664399545f.zip | |
Fix ICE when negative impl is collected during eager mono
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/traits/negative-impls/eager-mono.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/traits/negative-impls/eager-mono.rs b/src/test/ui/traits/negative-impls/eager-mono.rs new file mode 100644 index 00000000000..ce770376c0b --- /dev/null +++ b/src/test/ui/traits/negative-impls/eager-mono.rs @@ -0,0 +1,12 @@ +// build-pass +// compile-flags:-C link-dead-code=y + +#![feature(negative_impls)] + +trait Foo { + fn foo() {} +} + +impl !Foo for () {} + +fn main() {} |
