reference icon indicating copy to clipboard operation
reference copied to clipboard

include description of bindings in the reference

Open nikomatsakis opened this issue 6 years ago • 5 comments

This describes the behavior implemented in https://github.com/rust-lang/rust/pull/63376.

cc @Centril

nikomatsakis avatar Aug 15 '19 22:08 nikomatsakis

@nikomatsakis I was looking to merge this with the minor editorial changes, but I see that this example doesn't compile (aside from the syntax issues). I assume this is because of https://github.com/rust-lang/rust/issues/63618.

IIUC, the rules for defaults for associated types are not implemented at all? If that is correct, then I personally would prefer to document what is implemented, instead of what is intended in this case. (Following the same kind of logic that we don't document unstable features, future intentions, unimplemented RFCs, etc.)

If there are cases that are implemented, then I think it would be better to use those as examples. If they are not implemented at all, then I would prefer to remove the associated type rules for now and change the example to make it clear that it fails to infer.

We can very easily add the rules back once they are implemented.

ehuss avatar Apr 24 '20 21:04 ehuss

@ehuss oof, I totally forgot about this PR.

nikomatsakis avatar May 04 '20 20:05 nikomatsakis

What's the status on this?

Havvy avatar Feb 14 '21 06:02 Havvy