Clean UI tests 2 of n by spencer3035 · Pull Request #138639 · rust-lang/rust (original) (raw)

Note on modification of issues/issue-9382.rs:

This test diverged a lot from it's original intention as updates to Rust were
made. Originally, the intention was to check a compiler error for different
interactions of the ~ operator and the & operator, but ~ has since been
replaced with Box, which has it's own suite of tests. I made the decision to
keep it as a test of coercion from a &'a Vec::new() to &'a [] because I
couldn't find a similar test. I would almost remove the link to the issue in
the source because it isn't really relevant except for historical reasons.

Quoted issue: #9382
Original Commit: 920ca61

Excerpt of what the struct definitions looked like originally.

struct Thing1<'self> { baz: &'self [~int], bar: ~u64, }

struct Thing2<'self> { baz: &'self [~int], bar: u64, }