This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# no shebang-line as Python scripts aren't really executable on Windows | |
# use runner = ["python", "runner.py"] in your Cargo config instead | |
from hashlib import sha3_224 | |
from shlex import quote | |
import os | |
import pathlib | |
import platform | |
import sys | |
import subprocess as sp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::ops::Mul; | |
pub struct Foo<T>(T, T); | |
// Either of the following traits can be implemented individually, but both together cause an infinite recursion. | |
// If both traits are limited to a single type T it works fine. | |
impl<L, R, O> Mul<&Foo<R>> for &Foo<L> | |
where | |
for<'l, 'r> &'l L: Mul<&'r R, Output = O>, |