use foo::bar::* 导致 mismatched types 报错

📝

内容提要

问题描述 今天跟着文章学习的时候遇到一个问题. 我把这句导入语句 use crate::schema::products::dsl::*; 放在了顶部,  在下面定义了一个 method: impl Product { pub fn find(id: &i32) -> Result<Product, diesel::result::Error> { ...

➡️

继续阅读