rust/src/test/compile-fail/specialization
Niko Matsakis 4fd5aed551 do not overwrite child def-id in place but rather remove/insert
When inserting a node N into the tree of impls, we sometimes find than
an existing node C should be replaced with N. We used to overwrite C
in place with the new def-id N -- but since the lists of def-ids are
separated by simplified type, that could lead to N being inserted in
the wrong place. This meant we might miss conflicts. We are now not
trying to be so smart -- we remove C and then add N later.
2018-07-21 19:07:47 +03:00
..
defaultimpl add Self: Trait<..> inside the param_env of a default impl 2018-02-15 15:31:05 +00:00
issue-52050.rs do not overwrite child def-id in place but rather remove/insert 2018-07-21 19:07:47 +03:00
README.md
specialization-default-projection.rs
specialization-default-types.rs
specialization-no-default.rs
specialization-overlap-negative.rs
specialization-overlap.rs Implement RFC 1268 2017-04-14 22:04:53 -04:00
specialization-polarity.rs Adjust tests for removal of impl Foo for .. {} 2018-01-13 18:48:00 +03:00

This directory contains the test for incorrect usage of specialization that should lead to compile failure. Those tests break down into a few categories: