rust/src/test/ui/specialization
Esteban Küber 299bd12fe5 Point at associated types when they have a default type
Associated types with a default type in a trait can't be relied upon to
remain of that default type when in use, so literals of that type can't
be used in the trait's items. Point at the associated type and state
that information.

Reduce verbosity for associated consts of the wrong type.
2020-05-02 18:24:07 -07:00
..
auxiliary Deny specializing items not in the parent impl 2019-10-05 15:33:24 +02:00
defaultimpl Sort MultiSpans on creation 2020-04-22 17:15:34 -07:00
min_specialization Consider well-formed predicates in min-specialization 2020-03-15 13:49:28 +00:00
soundness Remove some unsound specializations 2020-02-01 09:11:41 +00:00
assoc-ty-graph-cycle.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cross-crate-defaults.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-36804.rs Deny specializing items not in the parent impl 2019-10-05 15:33:24 +02:00
issue-39448.rs
issue-39448.stderr
issue-39618.rs Add FIXME note 2020-02-16 04:36:44 +09:00
issue-50452.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-52050.rs
issue-52050.stderr Restore whitespace 2019-09-19 00:50:03 +02:00
issue-63716-parse-async.rs Allow 'default async fn' to parse. 2019-08-20 22:57:23 +02:00
issue-70442.rs Add a test 2020-03-30 19:44:21 +02:00
non-defaulted-item-fail.rs Rename the test 2019-10-05 15:33:26 +02:00
non-defaulted-item-fail.stderr Rename the test 2019-10-05 15:33:26 +02:00
README-rpass.md tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
README.md
specialization-allowed-cross-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-assoc-fns.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-basics.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-cross-crate-no-gate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-cross-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-default-methods.rs Deny specializing items not in the parent impl 2019-10-05 15:33:24 +02:00
specialization-default-projection.rs
specialization-default-projection.stderr When a projection is expected, suggest constraining or calling method 2020-05-02 18:24:07 -07:00
specialization-default-types.rs
specialization-default-types.stderr Point at associated types when they have a default type 2020-05-02 18:24:07 -07:00
specialization-feature-gate-default.rs
specialization-feature-gate-default.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
specialization-feature-gate-overlap.rs
specialization-feature-gate-overlap.stderr
specialization-no-default.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
specialization-no-default.stderr Update stderr files with --bless 2019-08-16 10:54:20 +01:00
specialization-on-projection.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-out-of-order.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-overlap-hygiene.rs
specialization-overlap-hygiene.stderr
specialization-overlap-negative.rs fix error code for E0751 2020-04-23 15:46:05 +08:00
specialization-overlap-negative.stderr fix error code for E0751 2020-04-23 15:46:05 +08:00
specialization-overlap-projection.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-overlap.rs
specialization-overlap.stderr
specialization-polarity.rs fix error code for E0751 2020-04-23 15:46:05 +08:00
specialization-polarity.stderr fix error code for E0751 2020-04-23 15:46:05 +08:00
specialization-projection-alias.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-projection.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-super-traits.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-translate-projections-with-lifetimes.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-translate-projections-with-params.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
specialization-translate-projections.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +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: