We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be49671 commit 90e94d9Copy full SHA for 90e94d9
src/librustc/infer/README.md
@@ -152,7 +152,7 @@ course, it depends on the program.
152
153
The main case which fails today that I would like to support is:
154
155
-```text
+```rust
156
fn foo<T>(x: T, y: T) { ... }
157
158
fn bar() {
@@ -168,6 +168,8 @@ because the type variable `T` is merged with the type variable for
168
`X`, and thus inherits its UB/LB of `@mut int`. This leaves no
169
flexibility for `T` to later adjust to accommodate `@int`.
170
171
+Note: `@` and `@mut` are replaced with `Rc<T>` and `Rc<RefCell<T>>` in current Rust.
172
+
173
### What to do when not all bounds are present
174
175
In the prior discussion we assumed that A.ub was not top and B.lb was
0 commit comments