about summary refs log tree commit diff
path: root/src/test/compile-fail/trait-as-struct-constructor.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-16/+0
2016-10-27Preparations and cleanupVadim Petrochenkov-2/+1
Diagnostics for struct path resolution errors in resolve and typeck are unified. Self type is treated as a type alias in few places (not reachable yet). Unsafe cell is seen in constants even through type aliases. All checks for struct paths in typeck work on type level.
2016-08-04Updated E0071 to new format.Federico Ravasio-0/+1
The span underlines only the name of the thing that's not a struct rather than the whole expression.
2016-07-08Resolve partially resolved paths in struct patterns/expressionsVadim Petrochenkov-1/+1
Treat Def::Err correctly in struct patterns Make instantiate_path and instantiate_type a bit closer to each other
2015-08-14be more robust to bogus items in struct patterns/constructorsAriel Ben-Yehuda-1/+1
Fixes #27815
2015-04-21test: Fix fallout in testsAlex Crichton-1/+1
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-02-18Fallout: tests. As tests frequently elide things, lots of changesNiko Matsakis-1/+1
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2014-08-29Added cfail testwickerwaka-0/+17
Changed error to 'use of trait `{}` as a struct constructor'