This commit is contained in:
AF 2023-07-31 19:00:55 +00:00
parent e8ec6c2780
commit 935fba6508
3 changed files with 40 additions and 0 deletions

View File

@ -1,4 +1,6 @@
# Summary
[Overview](./overview.md)
- [Chapter 1](./chapter_1.md)
- [`A`/`A1`/`A2`](./exercises/multiple_blanket.md)

View File

@ -1,3 +1,9 @@
Make this compile.
- `A1` doesn't know about/depend on `A2`
- `A2` doesn't know about/depend on `A1`
- `A1` doesn't know about/depend on `A`
- `A2` doesn't know about/depend on `A`
- can't edit definitions of `A`, `test`, `tes1`, `test2`; can only add code outside of those items
```rust
trait A {
fn a_ref(&self) -> u64;

32
src/overview.md Normal file
View File

@ -0,0 +1,32 @@
# Exercises
Random Rust exercises.
# Solutions
Currently solutions are only provided in a non-human-readable form in the page source.
Those are mostly inteded for testing that the exercise is even possible to solve.
```rust
# /*
fn fix_me() { // Greyed out because the solution changes this line.
# */
# fn fixed_name() {
}
fn do_not_change_this() {
fixed_name()
}
```
Some exercises may not include have the replaced parts greyed out:
```rust
# mod __ {
fn fix_me() {
# }
# mod }
# fn fixed_name() {
}
fn do_not_change_this() {
fixed_name()
}
```