New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anything generic over SelectDsl allows errors #591

Closed
jethrogb opened this Issue Jan 26, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@jethrogb
Contributor

jethrogb commented Jan 26, 2017

Any trait bound involving SelectDsl will error out with error[E0275]: overflow evaluating the requirement [...]. At least, I have not been able to write anything where that's not the case.

For example:

extern crate diesel;

use diesel::SelectDsl;
use diesel::expression::count::CountStar;
use diesel::types::BigInt;
use diesel::query_builder::SelectStatement;

trait MyTrait {}

impl<T> MyTrait for T where T: SelectDsl<CountStar, BigInt, Output=SelectStatement<BigInt, CountStar, T>> {}
@jethrogb

This comment has been minimized.

Contributor

jethrogb commented Jan 26, 2017

When writing <T as AsQuery>::Query: SelectDsl I seem to have better luck

@jethrogb jethrogb closed this Jan 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment