rust-lang/rust — pull request #15938 by pcwalton (2014-07-24 04:36:51+00:00)
Title: librustc: Check structure constructors against their types.

This breaks code like:

struct Point {
x: T,
y: T,
}

let pt = Point:: {
x: 1,
y: 2,
};

Change this code to not contain a type error. For example:

let pt = Point:: {
x: 1,
y: 2,
};

Closes #15875.

[breaking-change]

r? @huonw